Changeset 15962
- Timestamp:
- 08/26/13 16:43:07 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/c/classes/Elements/Element.h ¶
r15865 r15962 140 140 141 141 #ifdef _HAVE_GROUNDINGLINE_ 142 virtual void MigrateGroundingLine(IssmDouble* old_floating_ice,IssmDouble*sheet_ungrounding)=0;142 virtual void MigrateGroundingLine(IssmDouble* sheet_ungrounding)=0; 143 143 virtual void PotentialUngrounding(Vector<IssmDouble>* potential_sheet_ungrounding)=0; 144 144 virtual int UpdatePotentialUngrounding(IssmDouble* potential_sheet_ungrounding,Vector<IssmDouble>* vec_nodes_on_iceshelf,IssmDouble* nodes_on_iceshelf)=0; -
TabularUnified issm/trunk-jpl/src/c/classes/Elements/Penta.cpp ¶
r15959 r15962 11200 11200 #ifdef _HAVE_GROUNDINGLINE_ 11201 11201 /*FUNCTION Penta::MigrateGroundingLine{{{*/ 11202 void Penta::MigrateGroundingLine(IssmDouble* old_floating_ice,IssmDouble*sheet_ungrounding){11202 void Penta::MigrateGroundingLine(IssmDouble* sheet_ungrounding){ 11203 11203 11204 11204 int i,migration_style; -
TabularUnified issm/trunk-jpl/src/c/classes/Elements/Penta.h ¶
r15897 r15962 170 170 171 171 #ifdef _HAVE_GROUNDINGLINE_ 172 void MigrateGroundingLine(IssmDouble* old_floating_ice,IssmDouble*sheet_ungrounding);172 void MigrateGroundingLine(IssmDouble* sheet_ungrounding); 173 173 void PotentialUngrounding(Vector<IssmDouble>* potential_sheet_ungrounding); 174 174 int UpdatePotentialUngrounding(IssmDouble* potential_sheet_ungrounding,Vector<IssmDouble>* vec_nodes_on_iceshelf,IssmDouble* nodes_on_iceshelf); -
TabularUnified issm/trunk-jpl/src/c/classes/Elements/Tria.cpp ¶
r15959 r15962 7312 7312 #ifdef _HAVE_GROUNDINGLINE_ 7313 7313 /*FUNCTION Tria::MigrateGroundingLine{{{*/ 7314 void Tria::MigrateGroundingLine(IssmDouble* old_floating_ice,IssmDouble*sheet_ungrounding){7314 void Tria::MigrateGroundingLine(IssmDouble* sheet_ungrounding){ 7315 7315 7316 7316 int i,migration_style; -
TabularUnified issm/trunk-jpl/src/c/classes/Elements/Tria.h ¶
r15877 r15962 174 174 #ifdef _HAVE_GROUNDINGLINE_ 175 175 void PotentialUngrounding(Vector<IssmDouble>* potential_sheet_ungrounding); 176 void MigrateGroundingLine(IssmDouble* oldfloating,IssmDouble*sheet_ungrounding);176 void MigrateGroundingLine(IssmDouble* sheet_ungrounding); 177 177 int UpdatePotentialUngrounding(IssmDouble* vertices_potentially_ungrounding,Vector<IssmDouble>* vec_nodes_on_iceshelf,IssmDouble* nodes_on_iceshelf); 178 178 #endif -
TabularUnified issm/trunk-jpl/src/c/modules/GroundinglineMigrationx/GroundinglineMigrationx.cpp ¶
r15838 r15962 13 13 IssmDouble *vertices_potentially_ungrounding = NULL; 14 14 IssmDouble *vertices_ungrounding = NULL; 15 IssmDouble *old_floatingice = NULL;16 Vector<IssmDouble> *vec_old_floatingice = NULL;17 15 Element *element = NULL; 18 16 … … 42 40 } 43 41 44 /*Create vector with vertices initially floating and serialize*/45 vec_old_floatingice=CreateNodesOnFloatingIce(nodes,analysis_type);46 old_floatingice=vec_old_floatingice->ToMPISerial();47 48 42 /*Migrate grounding line : */ 49 43 for(int i=0;i<elements->Size();i++){ 50 44 element=dynamic_cast<Element*>(elements->GetObjectByOffset(i)); 51 element->MigrateGroundingLine( old_floatingice,vertices_ungrounding);45 element->MigrateGroundingLine(vertices_ungrounding); 52 46 } 53 47 54 48 /*free ressouces: */ 55 delete vec_old_floatingice;56 49 xDelete<IssmDouble>(vertices_potentially_ungrounding); 57 50 xDelete<IssmDouble>(vertices_ungrounding); 58 xDelete<IssmDouble>(old_floatingice);59 51 } 60 52
Note:
See TracChangeset
for help on using the changeset viewer.