Changeset 1763


Ignore:
Timestamp:
08/18/09 15:52:37 (15 years ago)
Author:
seroussi
Message:

prognostic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/ModelProcessorx/Prognostic/CreateConstraintsPrognostic.cpp

    r586 r1763  
    2929        double spc_value;
    3030       
    31         double* dirichletvalues_prog=NULL;
    32         double* gridondirichlet_prog=NULL;
     31        double* spcthickness=NULL;
    3332       
    3433        /*Create constraints: */
     
    3635
    3736        /*Fetch data: */
    38         ModelFetchData((void**)&gridondirichlet_prog,NULL,NULL,model_handle,"gridondirichlet_prog","Matrix","Mat");
    39         ModelFetchData((void**)&dirichletvalues_prog,NULL,NULL,model_handle,"dirichletvalues_prog","Matrix","Mat");
     37        ModelFetchData((void**)&spcthickness,NULL,NULL,model_handle,"spcthickness","Matrix","Mat");
    4038
    4139        count=0;
     
    4846        #endif
    4947
    50                 if ((int)gridondirichlet_prog[i]){
     48                if ((int)spcthickness[2*i]){
    5149       
    5250                        /*This grid needs to be spc'd: */
     
    5553                        spc_node=i+1;
    5654                        spc_dof=1; //we enforce first translation degree of freedom, for temperature
    57                         spc_value=dirichletvalues_prog[i];
     55                        spc_value=*(spcthickness+2*i+1);
    5856
    5957                        spc = new Spc(spc_sid,spc_node,spc_dof,spc_value);
     
    7270
    7371        /*Free data: */
    74         xfree((void**)&gridondirichlet_prog);
    75         xfree((void**)&dirichletvalues_prog);
     72        xfree((void**)&spcthickness);
    7673       
    7774        cleanup_and_return:
Note: See TracChangeset for help on using the changeset viewer.