Changeset 2013
- Timestamp:
- 08/27/09 12:26:59 (16 years ago)
- Location:
- issm/trunk/src/c/parallel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/parallel/prognostic_core.cpp
r1881 r2013 58 58 result=new Result(results->Size()+1,0,1,"h_g",h_g); 59 59 results->AddObject(result); 60 61 /*Free ressources:*/ 62 VecFree(&u_g); 63 VecFree(&h_g); 60 64 } -
issm/trunk/src/c/parallel/transient.cpp
r1888 r2013 153 153 WriteLockFile(lockname); 154 154 } 155 /*Free ressources:*/ 156 delete results; 157 delete model; 158 delete inputs; 159 xfree((void**)&u_g); 160 xfree((void**)&m_g); 161 xfree((void**)&a_g); 155 162 156 163 _printf_("closing MPI and Petsc\n"); -
issm/trunk/src/c/parallel/transient_core_2d.cpp
r1881 r2013 31 31 int step,i; 32 32 double time; 33 33 34 34 Vec u_g=NULL; 35 35 double* u_g_serial=NULL; … … 38 38 double* p_g_serial=NULL; 39 39 Vec h_g=NULL; 40 Vec new_h_g=NULL; 40 41 Vec h_g_intermediary=NULL; 41 42 double* h_g_serial=NULL; 42 43 Vec s_g=NULL; 44 Vec new_s_g=NULL; 43 45 double* s_g_serial=NULL; 44 46 Vec b_g=NULL; 47 Vec new_b_g=NULL; 45 48 double* b_g_serial=NULL; 46 47 49 48 50 /*intermediary: */ … … 124 126 125 127 //extract u_g and p_g from diagnostic_results, and erase diagnostic_results; 126 diagnostic_results->FindResult(&u_g,"u_g");127 diagnostic_results->FindResult(&p_g,"p_g");128 VecFree(&u_g); diagnostic_results->FindResult(&u_g,"u_g"); 129 VecFree(&p_g); diagnostic_results->FindResult(&p_g,"p_g"); 128 130 delete diagnostic_results; 129 131 … … 141 143 //update surface and bed using the new thickness 142 144 _printf_(" updating geometry\n"); 143 UpdateGeometryx(& h_g,&b_g,&s_g,145 UpdateGeometryx(&new_h_g,&new_b_g,&new_s_g, 144 146 fem_p->elements, fem_p->nodes,fem_p->loads, fem_p->materials, 145 147 h_g_intermediary,b_g,s_g); 148 149 VecFree(&h_g);h_g=new_h_g; 150 VecFree(&s_g);s_g=new_s_g; 151 VecFree(&b_g);b_g=new_b_g; 146 152 VecFree(&h_g_intermediary); 147 153 … … 152 158 result=new Result(results->Size()+1,time,step,"s_g",s_g); results->AddObject(result); 153 159 result=new Result(results->Size()+1,time,step,"b_g",b_g); results->AddObject(result); 160 154 161 } 155 162 … … 161 168 xfree((void**)&s_g_serial); 162 169 xfree((void**)&b_g_serial); 170 VecFree(&u_g); 171 VecFree(&p_g); 172 VecFree(&h_g); 173 VecFree(&s_g); 174 VecFree(&b_g); 163 175 }
Note:
See TracChangeset
for help on using the changeset viewer.