Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96957343
r_large.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
Wed, Jan 1, 02:45
Size
2 KB
Mime Type
text/x-c
Expires
Fri, Jan 3, 02:45 (2 d)
Engine
blob
Format
Raw Data
Handle
23299113
Attached To
R1448 Lenstool-HPC
r_large.c
View Options
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
#include<lt.h>
/****************************************************************/
/* Program : grille */
/* Version : 1 mai 1992 */
/* Location : Obs. Toulouse */
/* Auteur : jean-paul */
/****************************************************************/
void
r_large
(
FILE
*
IN
,
FILE
*
OUT
)
{
char
second
[
20
],
third
[
FILENAME_SIZE
+
10
];
extern
struct
g_large
L
;
fmot
(
IN
,
second
);
while
(
strcmp
(
second
,
"end"
))
{
flire
(
IN
,
third
);
CHECK_THIRD
(
FILENAME_SIZE
+
10
)
if
(
!
strcmp
(
second
,
"iso"
))
{
sscanf
(
third
,
"%d%d%lf%lf%lf"
,
&
L
.
iso
,
&
L
.
nmaxiso
,
&
L
.
scale
,
&
L
.
zonex
,
&
L
.
zoney
);
fprintf
(
OUT
,
"
\t
%s
\t
%d %d %lf %lf %lf
\n
"
,
second
,
L
.
iso
,
L
.
nmaxiso
,
L
.
scale
,
L
.
zonex
,
L
.
zoney
);
}
else
if
(
!
strcmp
(
second
,
"name"
))
{
sscanf
(
third
,
"%s"
,
L
.
iname
);
fprintf
(
OUT
,
"
\t
%s
\t
%s
\n
"
,
second
,
L
.
iname
);
}
else
if
(
!
strcmp
(
second
,
"profil"
))
{
sscanf
(
third
,
"%d%d"
,
&
L
.
profil
,
&
L
.
pt
);
fprintf
(
OUT
,
"
\t
%s
\t
%d %d
\n
"
,
second
,
L
.
profil
,
L
.
pt
);
}
else
if
(
!
strcmp
(
second
,
"contour"
))
{
sscanf
(
third
,
"%d%d"
,
&
L
.
ncourbe
,
&
L
.
npt
);
fprintf
(
OUT
,
"
\t
%s
\t
%d %d
\n
"
,
second
,
L
.
ncourbe
,
L
.
npt
);
}
else
if
(
!
strcmp
(
second
,
"vitesse"
))
{
sscanf
(
third
,
"%d"
,
&
L
.
vitesse
);
fprintf
(
OUT
,
"
\t
%s
\t
%d
\n
"
,
second
,
L
.
vitesse
);
}
else
if
(
!
strcmp
(
second
,
"large_dist"
))
{
sscanf
(
third
,
"%lf"
,
&
L
.
dlarge
);
fprintf
(
OUT
,
"
\t
%s
\t
%lf
\n
"
,
second
,
L
.
dlarge
);
}
// Read the next line
fmot
(
IN
,
second
);
}
fprintf
(
OUT
,
"
\t
%s
\n
"
,
second
);
}
Event Timeline
Log In to Comment