Changeset 2008
- Timestamp:
- 08/27/09 11:49:09 (16 years ago)
- Location:
- issm/trunk/src/c/parallel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/parallel/steadystate.cpp
r2004 r2008 60 60 outputfilename=argv[3]; 61 61 lockname=argv[4]; 62 63 /*Initialize model structure: */64 model=new Model();65 62 66 63 /*Open handle to data on disk: */ -
issm/trunk/src/c/parallel/steadystate_core.cpp
r2007 r2008 134 134 } 135 135 136 /*Free ressource*/137 VecFree(&old_u_g);138 VecFree(&old_t_g);139 140 136 /*Plug results into output dataset: */ 141 137 result=new Result(results->Size()+1,0,1,"u_g",u_g); … … 147 143 result=new Result(results->Size()+1,0,1,"m_g",m_g); 148 144 results->AddObject(result); 145 146 /*Free ressource*/ 147 VecFree(&old_u_g); 148 VecFree(&old_t_g); 149 VecFree(&u_g); 150 VecFree(&p_g); 151 VecFree(&t_g); 152 VecFree(&m_g); 149 153 } -
issm/trunk/src/c/parallel/thermal_core.cpp
r2004 r2008 46 46 int sub_analysis_type; 47 47 double melting_offset; 48 49 Param* param=NULL;50 48 51 49 /*recover fem models: */ … … 135 133 } 136 134 } 135 137 136 /*free ressource*/ 138 137 xfree((void**)&t_g); 138 xfree((void**)&m_g); 139 xfree((void**)&time); 140 139 141 } -
issm/trunk/src/c/parallel/thermal_core_nonlinear.cpp
r2007 r2008 71 71 72 72 /*Copy K_gg_nopenalty into Kgg, same for pg: */ 73 Kgg=(Mat)xmalloc(sizeof(Mat));74 73 MatDuplicate(Kgg_nopenalty,MAT_COPY_VALUES,&Kgg); 75 pg=(Vec)xmalloc(sizeof(Vec)); 76 VecDuplicate(pg_nopenalty,&pg);VecCopy(pg_nopenalty,pg); 74 VecDuplicatePatch(&pg,pg_nopenalty); 77 75 78 76 //apply penalties each time … … 101 99 /*Solve: */ 102 100 if(debug)_printf_("%s\n","solving"); 101 VecFree(&tf); 103 102 Solverx(&tf, Kff, pf,tf_old, solver_string); 104 103 VecFree(&tf_old); VecDuplicatePatch(&tf_old,tf); 105 104 106 105 //no need for Kff and pf anymore 107 MatFree(&Kff);VecFree(&pf); 106 MatFree(&Kff);VecFree(&pf);VecFree(&tg); 108 107 109 108 if (debug) _printf_(" merging solution from f to g set\n");
Note:
See TracChangeset
for help on using the changeset viewer.