Ignore:
Timestamp:
11/15/19 16:28:40 (5 years ago)
Author:
Mathieu Morlighem
Message:

NEW: added Inputs2, TODO: still AMR, GEMB and DC do not work, and need to delete current Inputs

File:
1 edited

Legend:

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

    r23588 r24335  
    99#include "../../classes/classes.h"
    1010
    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;
     11int     ConfigureObjectsx( Elements* elements, Loads* loads, Nodes* nodes, Vertices* vertices, Materials* materials,Parameters* parameters,Inputs2* inputs2){
    2012
    2113        /*Get analysis type: */
     14        int configuration_type;
    2215        parameters->FindParam(&configuration_type,ConfigurationTypeEnum);
    2316
    2417        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);
    2821        }
    2922        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);
    3225                load->Configure(elements,loads,nodes,vertices,materials,parameters);
    3326        }
    3427        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);
    3730                material->Configure(elements);
    3831        }
    39         return noerr;
     32        if(VerboseMProcessor()) _printf0_("      Configuring inputs...\n");
     33        inputs2->Configure(parameters);
     34
     35        return 1;
    4036}
Note: See TracChangeset for help on using the changeset viewer.