Changeset d8bb59 for pcp/src/output.c


Ignore:
Timestamp:
Apr 21, 2008, 3:30:10 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
e24bbb
Parents:
1da479
Message:

InitOutputFiles(): ReciSpread and TemperatureFiles added

ReciSpread and TemperatureFiles are initialised with NULL, opened and header is written

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pcp/src/output.c

    r1da479 rd8bb59  
    11601160  F->MinimisationFile = NULL;
    11611161  F->SpreadFile = NULL;
     1162  F->ReciSpreadFile = NULL;
     1163  F->TemperatureFile = NULL;
    11621164  // process 0 ?
    11631165  F->MeOutVis = ((P->Par.my_color_comm_ST == 0 && P->Par.my_color_comm_ST_Psi == 0 && F->DoOutVis) ? 1 : 0);
     
    11701172  if (F->ForcesFile == NULL) fprintf(stderr,"Error opening ForcesFile\n");
    11711173  // write header of forces file
    1172   fprintf(F->ForcesFile, "%s\t%s\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\n",
     1174  fprintf(F->ForcesFile, "%s\t%s\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\t%s\t%s\t%s\t\t%s\t\t%s\n",
    11731175          "Type", "No",
    11741176          "Pos0", "Pos1", "Pos2",
     
    11761178          "Local0", "Local1", "Local2",
    11771179          "NLocal0", "NLocal1", "NLocal2",
     1180    "Magnetic0", "Magnetic1", "Magnetic2",
    11781181          "Ewald0", "Ewald1", "Ewald2");
    11791182  OpenFile(P, &F->EnergyFile, suffixenergyall, "w",P->Call.out[ReadOut]);
     
    12101213  // write header of minimsation file
    12111214  fprintf(F->MinimisationFile, "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n","Step", "Psi", "PsiStep", "TE", "ATE", "delta", "dEdt0", "ddEdtt0");
     1215
     1216  OpenFile(P, &F->TemperatureFile, suffixtempall, "w",P->Call.out[ReadOut]);
     1217  if (F->TemperatureFile == NULL) fprintf(stderr,"Error opening TemperatureFile\n");
    12121218}
    12131219
Note: See TracChangeset for help on using the changeset viewer.