Changeset 1208


Ignore:
Timestamp:
07/01/09 17:14:38 (15 years ago)
Author:
Mathieu Morlighem
Message:

use numberofdofspernode needed for Stokes

Location:
issm/trunk/src/c/parallel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/parallel/GradJCompute.cpp

    r1206 r1208  
    2222        int sub_analysis_type;
    2323        int numberofnodes;
     24        int numberofdofspernode;
    2425        char* solverstring=NULL;
    2526        char* control_type=NULL;
  • issm/trunk/src/c/parallel/objectivefunctionC.cpp

    r1185 r1208  
    2727        double* grad_g=NULL;
    2828        ParameterInputs* inputs=NULL;
     29        int numberofdofspernode;
    2930        int n;
    3031
     
    6061        femmodel->parameters->FindParam((void*)&sub_analysis_type,"sub_analysis_type");
    6162        femmodel->parameters->FindParam((void*)&numberofnodes,"numberofnodes");
     63        femmodel->parameters->FindParam((void*)&numberofdofspernode,"numberofdofspernode");
    6264
    6365        /*First copy param_g so we don't modify it: */
     
    7779        diagnostic_core_nonlinear(&u_g,NULL,NULL,femmodel,inputs,analysis_type,sub_analysis_type);
    7880        VecToMPISerial(&u_g_double,u_g); VecFree(&u_g);
    79         inputs->Add("velocity",u_g_double,2,numberofnodes);
     81        inputs->Add("velocity",u_g_double,numberofdofspernode,numberofnodes);
    8082
    8183        //Compute misfit for this velocity field.
Note: See TracChangeset for help on using the changeset viewer.