Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96791026
r_msgrid.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Dec 30, 21:29
Size
1 KB
Mime Type
text/x-c
Expires
Wed, Jan 1, 21:29 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23226327
Attached To
R1448 Lenstool-HPC
r_msgrid.c
View Options
#include<stdio.h>
#include<string.h>
#include "fonction.h"
#include "structure.h"
#include<lt.h>
/****************************************************************/
/* Program : lenstool */
/* Version : 22 february 2008 */
/* Location : OAMP */
/* Auteur : eric */
/****************************************************************/
void r_msgrid(FILE *IN, FILE *OUT)
{
extern struct g_msgrid H;
char second[20], third[FILENAME_SIZE+10];
fmot(IN, second);
while (strcmp(second, "end"))
{
flire(IN, third);
CHECK_THIRD(FILENAME_SIZE+10)
if ( !strcmp(second, "threshold"))
{
sscanf(third, "%lf", &H.threshold);
fprintf(OUT, "\t%s\t%lf\n", second, H.threshold);
}
else if ( !strcmp(second, "levels"))
{
sscanf(third, "%d", &H.levels);
fprintf(OUT, "\t%s\t%d\n", second, H.levels);
}
else if ( !strcmp(second, "param"))
{
sscanf(third, "%lf", &H.param);
fprintf(OUT, "\t%s\t%lf\n", second, H.param);
}
else if ( !strcmp(second, "gridfile"))
{
sscanf(third, "%s", H.gridfile);
fprintf(OUT, "\t%s\t%s\n", second, H.gridfile);
}
// Read the next line
fmot(IN, second);
}
fprintf(OUT, "\t%s\n", second);
}
Event Timeline
Log In to Comment