Changeset 19709
- Timestamp:
- 11/12/15 09:45:05 (9 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/ExternalResults/GenericExternalResult.h
r19340 r19709 102 102 } 103 103 /*}}}*/ 104 GenericExternalResult(int in_id, int in_enum_type,ResultType in_value ,int in_step){ /*{{{*/104 GenericExternalResult(int in_id, int in_enum_type,ResultType in_value){ /*{{{*/ 105 105 id = in_id; 106 106 value = in_value; 107 step = in_step;107 step = UNDEF; 108 108 time = UNDEF; 109 109 M = 1; … … 272 272 273 273 } /*}}}*/ 274 template <> inline GenericExternalResult<char*>::GenericExternalResult(int in_id, int in_enum_type,char* in_value ,int in_step){ /*{{{*/274 template <> inline GenericExternalResult<char*>::GenericExternalResult(int in_id, int in_enum_type,char* in_value){ /*{{{*/ 275 275 276 276 id = in_id; 277 277 value = xNew<char>(strlen(in_value)+1); 278 278 xMemCpy<char>(value,in_value,(strlen(in_value)+1)); 279 step = in_step;279 step = UNDEF; 280 280 time = UNDEF; 281 281 -
issm/trunk-jpl/src/c/cores/controlm1qn3_core.cpp
r19345 r19709 137 137 ControlInputSetGradientx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,G); 138 138 femmodel->OutputControlsx(&femmodel->results); 139 femmodel->results->AddObject(new GenericExternalResult<double>(femmodel->results->Size()+1,JEnum,f ,0));139 femmodel->results->AddObject(new GenericExternalResult<double>(femmodel->results->Size()+1,JEnum,f)); 140 140 141 141 /*Finalize*/ -
issm/trunk-jpl/src/c/modules/OutputResultsx/OutputResultsx.cpp
r19708 r19709 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)); 45 45 xDelete<char>(solutiontypestring); 46 46 } -
issm/trunk-jpl/src/m/solve/parseresultsfromdisk.m
r19594 r19709 47 47 48 48 %Add result 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), 49 if(result.step==0), 54 50 %if we have a step = 0, this is a steady state solutoin, don't expect more steps. 55 51 index = 1; … … 60 56 index = counter; 61 57 end 62 results(index).step=result.step;63 58 results(index).(result.fieldname)=result.field; 59 if(result.time~=-9999), 60 results(index).step=result.step; 61 end 64 62 if(result.time~=-9999), 65 63 results(index).time=result.time; -
issm/trunk-jpl/src/m/solve/parseresultsfromdisk.py
r19708 r19709 58 58 59 59 #Add result 60 if result['step']==-1: 61 #specialty case, put this result at the beginning of the structure 62 index = 0 63 result['step']=0 64 elif result['step']==0: 65 #if we have a step = 0, this is a steady state solutoin, don't expect more steps. 60 if result['step']==0: 61 #if we have a step = 0, this is a steady state solution, don't expect more steps. 66 62 index = 0; 67 63 check_nomoresteps=1 … … 82 78 83 79 #Get time and step 84 setattr(results[index],'step',result['step']) 80 if result['step'] != -9999.: 81 setattr(results[index],'step',result['step']) 85 82 if result['time'] != -9999.: 86 83 setattr(results[index],'time',result['time'])
Note:
See TracChangeset
for help on using the changeset viewer.