Changeset 1763
- Timestamp:
- 08/18/09 15:52:37 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/ModelProcessorx/Prognostic/CreateConstraintsPrognostic.cpp
r586 r1763 29 29 double spc_value; 30 30 31 double* dirichletvalues_prog=NULL; 32 double* gridondirichlet_prog=NULL; 31 double* spcthickness=NULL; 33 32 34 33 /*Create constraints: */ … … 36 35 37 36 /*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"); 40 38 41 39 count=0; … … 48 46 #endif 49 47 50 if ((int) gridondirichlet_prog[i]){48 if ((int)spcthickness[2*i]){ 51 49 52 50 /*This grid needs to be spc'd: */ … … 55 53 spc_node=i+1; 56 54 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); 58 56 59 57 spc = new Spc(spc_sid,spc_node,spc_dof,spc_value); … … 72 70 73 71 /*Free data: */ 74 xfree((void**)&gridondirichlet_prog); 75 xfree((void**)&dirichletvalues_prog); 72 xfree((void**)&spcthickness); 76 73 77 74 cleanup_and_return:
Note:
See TracChangeset
for help on using the changeset viewer.