Last change
on this file since 3 was
3,
checked in by zhangj, 12 years ago
|
Initiale import
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | /* Tracy-2 |
---|
2 | |
---|
3 | J. Bengtsson, CBP, LBL 1990 - 1994 Pascal version |
---|
4 | SLS, PSI 1995 - 1997 |
---|
5 | M. Boege SLS, PSI 1998 C translation |
---|
6 | L. Nadolski SOLEIL 2002 Link to NAFF, Radia field maps |
---|
7 | J. Bengtsson NSLS-II, BNL 2004 - |
---|
8 | |
---|
9 | pascalio.c -- PASCAL i/o routines and initialization routines |
---|
10 | |
---|
11 | */ |
---|
12 | |
---|
13 | |
---|
14 | str80 finame; /* input data file */ |
---|
15 | str80 foname; /* output data file */ |
---|
16 | str80 fname; /* temp file name */ |
---|
17 | |
---|
18 | FILE *fi; /* lattice input file */ |
---|
19 | FILE *fo; /* lattice output file */ |
---|
20 | FILE *psin[maxincl + 1]; /* program input file */ |
---|
21 | FILE *psout; /* program output file*/ |
---|
22 | FILE *prr[maxfil - 2]; /* prr[1] : input, prr[2] : output */ |
---|
23 | |
---|
24 | bool ErrFlag; |
---|
25 | |
---|
26 | |
---|
27 | void t2init(void) |
---|
28 | { |
---|
29 | // iniranf(0); /* initialise le generateur aleatoire: graine 0 */ |
---|
30 | |
---|
31 | // fprintf(stdout,"pi = %20.16e \n",pi); |
---|
32 | |
---|
33 | cellconcat = false; |
---|
34 | |
---|
35 | // daini((long)no_, (long)nv_, 0); |
---|
36 | |
---|
37 | // lieini((long)no_, (long)nv_, (long)nd2_); |
---|
38 | |
---|
39 | globval.MatMeth = false; |
---|
40 | } |
---|
41 | |
---|
42 | |
---|
43 | // Matlab BS |
---|
44 | void exit_(int exit_code) |
---|
45 | { |
---|
46 | |
---|
47 | printf("fatal error, <ret> to continue "); |
---|
48 | cin.ignore(1, '\n'); |
---|
49 | |
---|
50 | exit(exit_code); |
---|
51 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.