- Timestamp:
- 11/15/19 16:28:40 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/ConfigureObjectsx/ConfigureObjectsx.cpp
r23588 r24335 9 9 #include "../../classes/classes.h" 10 10 11 int ConfigureObjectsx( Elements* elements, Loads* loads, Nodes* nodes, Vertices* vertices, Materials* materials,Parameters* parameters){ 12 13 /*Intermediary*/ 14 int i; 15 int noerr = 1; 16 int configuration_type; 17 Element *element = NULL; 18 Load *load = NULL; 19 Material *material = NULL; 11 int ConfigureObjectsx( Elements* elements, Loads* loads, Nodes* nodes, Vertices* vertices, Materials* materials,Parameters* parameters,Inputs2* inputs2){ 20 12 21 13 /*Get analysis type: */ 14 int configuration_type; 22 15 parameters->FindParam(&configuration_type,ConfigurationTypeEnum); 23 16 24 17 if(VerboseMProcessor()) _printf0_(" Configuring elements...\n"); 25 for(i =0;i<elements->Size();i++){26 element=xDynamicCast<Element*>(elements->GetObjectByOffset(i));27 element->Configure(elements,loads,nodes,vertices,materials,parameters );18 for(int i=0;i<elements->Size();i++){ 19 Element* element=xDynamicCast<Element*>(elements->GetObjectByOffset(i)); 20 element->Configure(elements,loads,nodes,vertices,materials,parameters,inputs2); 28 21 } 29 22 if(VerboseMProcessor()) _printf0_(" Configuring loads...\n"); 30 for(i =0;i<loads->Size();i++){31 load=(Load*)loads->GetObjectByOffset(i);23 for(int i=0;i<loads->Size();i++){ 24 Load* load=(Load*)loads->GetObjectByOffset(i); 32 25 load->Configure(elements,loads,nodes,vertices,materials,parameters); 33 26 } 34 27 if(VerboseMProcessor()) _printf0_(" Configuring materials...\n"); 35 for(i =0;i<materials->Size();i++){36 material=(Material*)materials->GetObjectByOffset(i);28 for(int i=0;i<materials->Size();i++){ 29 Material* material=(Material*)materials->GetObjectByOffset(i); 37 30 material->Configure(elements); 38 31 } 39 return noerr; 32 if(VerboseMProcessor()) _printf0_(" Configuring inputs...\n"); 33 inputs2->Configure(parameters); 34 35 return 1; 40 36 }
Note:
See TracChangeset
for help on using the changeset viewer.