Changeset 19343
- Timestamp:
- 05/07/15 16:36:26 (10 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/OutputResultsx/OutputResultsx.cpp
r17055 r19343 42 42 femmodel->parameters->FindParam(&solutiontype,SolutionTypeEnum); 43 43 EnumToStringx(&solutiontypestring,solutiontype); 44 femmodel->results->AddResult(new GenericExternalResult<char*>(femmodel->results->Size()+1,SolutionTypeEnum,solutiontypestring, 1));44 femmodel->results->AddResult(new GenericExternalResult<char*>(femmodel->results->Size()+1,SolutionTypeEnum,solutiontypestring,-1)); 45 45 xDelete<char>(solutiontypestring); 46 46 } -
issm/trunk-jpl/src/m/solve/parseresultsfromdisk.m
r19326 r19343 28 28 result = ReadData(fid); 29 29 if isempty(result), error(['no results found in binary file ' filename]); end 30 check_nomoresteps=0; 30 31 counter = 1; 31 32 step = result.step; 32 33 while ~isempty(result), 34 35 if check_nomoresteps, 36 %check that the new result does not add a step, which would be an error: 37 if result.step>=1, 38 error('parsing results for a steady-state core, which incorporates transient results!'); 39 end 40 end 33 41 34 42 %Check step, increase counter if this is a new step … … 39 47 40 48 %Add result 41 if(result.step==1), 49 if(result.step==-1), 50 %specialty case, put this result at the beginning of the structure 51 index = 1; 52 result.step=0; 53 elseif(result.step==0), 54 %if we have a step = 0, this is a steady state solutoin, don't expect more steps. 55 index = 1; 56 check_nomoresteps=1; 57 elseif(result.step==1), 42 58 index = 1; 43 59 else
Note:
See TracChangeset
for help on using the changeset viewer.