1 |
|
#include <cstring> |
2 |
|
#include <iostream> |
3 |
|
#include <fstream> |
4 |
+ |
|
5 |
+ |
#ifdef IS_MPI |
6 |
|
#include <mpi.h> |
7 |
+ |
#include "mpiSimulation.hpp" |
8 |
+ |
#endif //is_mpi |
9 |
|
|
10 |
|
#include "ReadWrite.hpp" |
11 |
|
#include "simError.h" |
12 |
|
|
13 |
|
|
14 |
+ |
|
15 |
+ |
|
16 |
+ |
|
17 |
|
DumpWriter::DumpWriter( SimInfo* the_entry_plug ){ |
18 |
|
|
19 |
|
#ifdef IS_MPI |
329 |
|
|
330 |
|
finalOut << nAtoms << "\n"; |
331 |
|
|
332 |
< |
finalOut << currentTime << "\t" |
333 |
< |
<< entry_plug->box_x << "\t" |
334 |
< |
<< entry_plug->box_y << "\t" |
328 |
< |
<< entry_plug->box_z << "\n"; |
332 |
> |
finalOut << entry_plug->box_x << "\t" |
333 |
> |
<< entry_plug->box_y << "\t" |
334 |
> |
<< entry_plug->box_z << "\n"; |
335 |
|
|
336 |
|
for( i=0; i<nAtoms; i++ ){ |
337 |
|
|
386 |
|
if( worldRank == 0 ){ |
387 |
|
finalOut << entry_plug->mpiSim->getTotAtoms() << "\n"; |
388 |
|
|
389 |
< |
finalOut << currentTime << "\t" |
390 |
< |
<< entry_plug->box_x << "\t" |
391 |
< |
<< entry_plug->box_y << "\t" |
392 |
< |
<< entry_plug->box_z << "\n"; |
387 |
< |
|
389 |
> |
finalOut << entry_plug->box_x << "\t" |
390 |
> |
<< entry_plug->box_y << "\t" |
391 |
> |
<< entry_plug->box_z << "\n"; |
392 |
> |
|
393 |
|
masterIndex = 0; |
394 |
|
for( i=0; i<nAtoms; i++ ){ |
395 |
|
|