Changeset 16794
- Timestamp:
- 11/15/13 16:19:47 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/c/modules/OutputDefinitionsResponsex/OutputDefinitionsResponsex.cpp ¶
r16499 r16794 15 15 16 16 /*Ok, go find the output definitions dataset in the parameters, where our responses are hiding: */ 17 femmodel->parameters->FindParam(&output_definitions,OutputdefinitionEnum); _assert_(output_definitions);17 output_definitions=((DataSetParam*)femmodel->parameters->FindParamObject(OutputdefinitionEnum))->value; 18 18 19 19 /*Now, go through the output definitions, and retrieve the object which corresponds to our requested response, output_string: */ … … 24 24 char* name = definition->Name(); 25 25 if (strcmp(name,output_string)==0){ 26 26 27 /*This is the object that we have been chasing for. compute the response and return: */ 27 28 return_value=definition->Response(femmodel); 28 delete output_definitions; 29 30 /*cleanup: */ 29 31 xDelete<char>(name); 32 33 /*return:*/ 30 34 return return_value; 31 35 } 32 36 xDelete<char>(name); 33 37 } 38 34 39 /*If we are here, did not find the definition for this response, not good!: */ 35 40 _error_("Could not find the response for output definition " << output_string << " because could not find the definition itself!");
Note:
See TracChangeset
for help on using the changeset viewer.