Changeset 18937


Ignore:
Timestamp:
12/04/14 15:19:20 (10 years ago)
Author:
Eric.Larour
Message:

CHG: protect closing of output file from AD runs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r18890 r18937  
    199199
    200200        /*Open output file once for all and add output file descriptor to parameters*/
    201         output_fid=pfopen(outputfilename,"wb");
    202         this->parameters->SetParam(output_fid,OutputFilePointerEnum);
     201        if(!trace){
     202                output_fid=pfopen(outputfilename,"wb");
     203                this->parameters->SetParam(output_fid,OutputFilePointerEnum);
     204        }
    203205       
    204206        /*Now save all of these file names into parameters, you never know when you might need them: */
     
    325327        WrapperCorePointerFromSolutionEnum(&solutioncore,this->parameters,solution_type);
    326328
    327         /*run solutoin core: */
     329        /*run solution core: */
    328330        profiler->Tag(StartCore);   
    329331        solutioncore(this);
Note: See TracChangeset for help on using the changeset viewer.