Changeset 1ce31f for pcp


Ignore:
Timestamp:
Apr 21, 2008, 6:38:05 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
9bebe0
Parents:
48cbc9
Message:

OutputSrcPsiDensity(): now returns int instead of void

0 means everything is ok, 1 means error. Return code is so far not used anywhere else in the code.

Location:
pcp/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pcp/src/output.c

    r48cbc9 r1ce31f  
    300300 * \param *P Problem at hand
    301301 * \param type Current minimisation state
     302 * \return 0 - file written, 1 - unable to open files for writing
    302303 * \note This serves as a backup file, when the process is terminated and one would like to restart it at the
    303304 *       current calculation lateron, see ReadSrcPsiDensity(). Note also that it is not necessary to specify the
     
    307308 *  each other
    308309 */
    309 void OutputSrcPsiDensity(struct Problem *P, enum PsiTypeTag type)
     310int OutputSrcPsiDensity(struct Problem *P, enum PsiTypeTag type)
    310311{
    311312  int i,j,k, Index, zahl, owner;
     
    466467    fclose(SrcPsiData);
    467468  SpeedMeasure(P,ReadnWriteTime,StopTimeDo);
     469 
     470  return 0;
    468471}
    469472
  • pcp/src/output.h

    r48cbc9 r1ce31f  
    6161void OutputVis(struct Problem *P, fftw_real *srcdens);
    6262void OutputVisSrcFiles(struct Problem *P, enum PsiTypeTag type);
    63 void OutputSrcPsiDensity(struct Problem *P, enum PsiTypeTag type);
     63int OutputSrcPsiDensity(struct Problem *P, enum PsiTypeTag type);
    6464void ReadSrcFiles(struct Problem *P);
    6565int ReadSrcIons(struct Problem *P);
Note: See TracChangeset for help on using the changeset viewer.