Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96629790
gs_ecrire_t.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
Sun, Dec 29, 05:58
Size
1 KB
Mime Type
text/x-c
Expires
Tue, Dec 31, 05:58 (2 d)
Engine
blob
Format
Raw Data
Handle
23218894
Attached To
R1448 Lenstool-HPC
gs_ecrire_t.c
View Options
#include<stdio.h>
#include<math.h>
#include "fonction.h"
#include "constant.h"
#include"dimension.h"
#include "structure.h"
/****************************************************************/
/* nom: gs_ecrire_t */
/* auteur: Jean-Paul Kneib */
/* date: 10/02/92 */
/* place: Toulouse */
/****************************************************************/
void
gs_ecrire_t
(
char
name
[
20
])
{
const
extern
struct
g_grille
G
;
const
extern
struct
point
gsource
[][
NGGMAX
];
FILE
*
OUT1
;
register
int
i
,
j
;
OUT1
=
fopen
(
name
,
"w"
);
for
(
j
=
0
;
j
<
G
.
ngrid
;
j
++
)
{
for
(
i
=
0
;
i
<
G
.
ngrid
;
i
++
)
{
fprintf
(
OUT1
,
"%d
\t
%d
\t
%lf
\t
%lf
\t\n
"
,
i
,
j
,
gsource
[
i
][
j
].
x
,
gsource
[
i
][
j
].
y
);
};
if
(
++
j
<
G
.
ngrid
)
{
for
(
i
=
G
.
ngrid
-
1
;
i
>=
0
;
i
--
)
{
fprintf
(
OUT1
,
"%d
\t
%d
\t
%lf
\t
%lf
\t\n
"
,
i
,
j
,
gsource
[
i
][
j
].
x
,
gsource
[
i
][
j
].
y
);
};
};
};
fclose
(
OUT1
);
}
Event Timeline
Log In to Comment