Changeset 1765
- Timestamp:
- 08/18/09 15:56:41 (16 years ago)
- Location:
- issm/trunk/src/c/ModelProcessorx/Thermal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/ModelProcessorx/Thermal/CreateConstraintsThermal.cpp
r546 r1765 29 29 double spc_value; 30 30 31 double* dirichletvalues_thermal=NULL; 32 double* gridondirichlet_thermal=NULL; 31 double* spctemperature=NULL; 33 32 34 33 /*Create constraints: */ … … 36 35 37 36 /*Fetch data: */ 38 ModelFetchData((void**)&gridondirichlet_thermal,NULL,NULL,model_handle,"gridondirichlet_thermal","Matrix","Mat"); 39 ModelFetchData((void**)&dirichletvalues_thermal,NULL,NULL,model_handle,"dirichletvalues_thermal","Matrix","Mat"); 37 ModelFetchData((void**)&spctemperature,NULL,NULL,model_handle,"spctemperature","Matrix","Mat"); 40 38 41 39 count=0; … … 48 46 #endif 49 47 50 if ((int) gridondirichlet_thermal[i]){48 if ((int)spctemperature[2*i]){ 51 49 52 50 /*This grid needs to be spc'd to vx_obs and vy_obs:*/ … … 55 53 spc_node=i+1; 56 54 spc_dof=1; //we enforce first translation degree of freedom, for temperature 57 spc_value= dirichletvalues_thermal[i];55 spc_value=spctemperature[2*i+1]; 58 56 59 57 spc = new Spc(spc_sid,spc_node,spc_dof,spc_value); … … 75 73 cleanup_and_return: 76 74 /*Free data: */ 77 xfree((void**)&gridondirichlet_thermal); 78 xfree((void**)&dirichletvalues_thermal); 75 xfree((void**)&spctemperature); 79 76 80 77 /*Assign output pointer: */ -
issm/trunk/src/c/ModelProcessorx/Thermal/CreateLoadsThermal.cpp
r575 r1765 47 47 48 48 //create penalties for grids: no grid can have a temperature over the melting point 49 ModelFetchData((void**)&model-> gridondirichlet_thermal,NULL,NULL,model_handle,"gridondirichlet_thermal","Matrix","Mat");49 ModelFetchData((void**)&model->spctemperature,NULL,NULL,model_handle,"spctemperature","Matrix","Mat"); 50 50 51 51 for (i=0;i<model->numberofnodes;i++){ … … 55 55 #endif 56 56 57 if (!model-> gridondirichlet_thermal[i]){ //No penalty applied on spc grids!57 if (!model->spctemperature[2*i]){ //No penalty applied on spc grids! 58 58 59 59 pengrid_id=count+1; //matlab indexing … … 73 73 #endif 74 74 } 75 xfree((void**)&model-> gridondirichlet_thermal);75 xfree((void**)&model->spctemperature); 76 76 77 77 /*All our datasets are already order by ids. Set presort flag so that later on, when sorting is requested on these
Note:
See TracChangeset
for help on using the changeset viewer.