Changeset 19708


Ignore:
Timestamp:
11/12/15 09:20:05 (9 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixing (partially) time and step in results

Location:
issm/trunk-jpl/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/c/modules/OutputResultsx/OutputResultsx.cpp

    r19506 r19708  
    4242                femmodel->parameters->FindParam(&solutiontype,SolutionTypeEnum);
    4343                EnumToStringx(&solutiontypestring,solutiontype);
    44                 femmodel->results->AddResult(new GenericExternalResult<char*>(femmodel->results->Size()+1,SolutionTypeEnum,solutiontypestring,-9999));
     44                femmodel->results->AddResult(new GenericExternalResult<char*>(femmodel->results->Size()+1,SolutionTypeEnum,solutiontypestring,-1));
    4545                xDelete<char>(solutiontypestring);
    4646        }
  • TabularUnified issm/trunk-jpl/src/m/solve/parseresultsfromdisk.py

    r19527 r19708  
    8080                        results[index]=resultsclass.results()
    8181
    82                 if index==0 and  step==3:
    83                         print result
    8482                       
    8583                #Get time and step
    8684                setattr(results[index],'step',result['step'])
    87                 setattr(results[index],'time',result['time'])
     85                if result['time'] != -9999.:
     86                        setattr(results[index],'time',result['time'])
    8887       
    8988                #Add result
Note: See TracChangeset for help on using the changeset viewer.