32 |
|
painCave.isFatal = 1; |
33 |
|
simError(); |
34 |
|
} |
35 |
– |
|
36 |
– |
rawFile.open(rawName, ios::out | ios::trunc ); |
37 |
– |
|
38 |
– |
if( !rawFile ){ |
39 |
– |
|
40 |
– |
sprintf( painCave.errMsg, |
41 |
– |
"Could not open \"%s\" for stat output.\n", |
42 |
– |
rawName); |
43 |
– |
painCave.isFatal = 1; |
44 |
– |
simError(); |
45 |
– |
} |
35 |
|
|
36 |
|
//outFile.setf( ios::scientific ); |
37 |
|
outFile << "#time(fs)\ttot_E\tpotential\tkinetic\ttemperature\tpressure\tvolume\tconserved quantity\n"; |
38 |
|
|
39 |
< |
rawFile << "#time(fs)\tRaw Pot\t Raw Harm\n"; |
39 |
> |
if (entry_plug->useThermInt) { |
40 |
> |
rawFile.open(rawName, ios::out | ios::trunc ); |
41 |
> |
|
42 |
> |
if( !rawFile ){ |
43 |
> |
|
44 |
> |
sprintf( painCave.errMsg, |
45 |
> |
"Could not open \"%s\" for stat output.\n", |
46 |
> |
rawName); |
47 |
> |
painCave.isFatal = 1; |
48 |
> |
simError(); |
49 |
> |
} |
50 |
> |
|
51 |
> |
rawFile << "#time(fs)\tRaw Pot\t Raw Harm\n"; |
52 |
> |
} |
53 |
|
|
54 |
|
#ifdef IS_MPI |
55 |
|
} |