Changeset 14687
- Timestamp:
- 04/22/13 08:57:46 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/ToolkitOptions.cpp
r14686 r14687 22 22 23 23 /*copy options into toolkitoptions:*/ 24 _assert_( tokenlist);24 _assert_(options); 25 25 toolkitoptions= xNew<char>(strlen(options)+1); 26 26 sprintf(toolkitoptions, "%s",options); -
issm/trunk-jpl/src/c/modules/GroundinglineMigrationx/GroundinglineMigrationx.cpp
r14652 r14687 13 13 void GroundinglineMigrationx(Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads,Materials* materials, Parameters* parameters){ 14 14 15 int i,migration_style,analysis_type;16 IssmDouble *vertices_potentially_ungrounding = NULL;17 IssmDouble *vertices_ungrounding = NULL;18 IssmDouble *old_floatingice = NULL;19 Vector<IssmDouble> *vec_old_floatingice = NULL;20 Element *element = NULL;15 int migration_style,analysis_type; 16 IssmDouble *vertices_potentially_ungrounding = NULL; 17 IssmDouble *vertices_ungrounding = NULL; 18 IssmDouble *old_floatingice = NULL; 19 Vector<IssmDouble> *vec_old_floatingice = NULL; 20 Element *element = NULL; 21 21 22 22 if(VerboseModule()) _pprintLine_(" Migrating grounding line"); … … 27 27 28 28 if(migration_style==NoneEnum) return; 29 if(migration_style!=AgressiveMigrationEnum && migration_style!=SoftMigrationEnum && migration_style!=SubelementMigrationEnum && migration_style!=SubelementMigration2Enum) _error_(EnumToStringx(migration_style) << " not supported yet!"); 29 30 if(migration_style!=AgressiveMigrationEnum && 31 migration_style!=SoftMigrationEnum && 32 migration_style!=SubelementMigrationEnum && 33 migration_style!=SubelementMigration2Enum) 34 _error_("Grounding line migration "<<EnumToStringx(migration_style) << " not supported yet!"); 35 36 /*Set toolkit to default*/ 37 ToolkitsOptionsFromAnalysis(parameters,NoneAnalysisEnum); 30 38 31 39 if(migration_style==SoftMigrationEnum){ … … 42 50 43 51 /*Migrate grounding line : */ 44 for(i =0;i<elements->Size();i++){52 for(int i=0;i<elements->Size();i++){ 45 53 element=dynamic_cast<Element*>(elements->GetObjectByOffset(i)); 46 54 element->MigrateGroundingLine(old_floatingice,vertices_ungrounding);
Note:
See TracChangeset
for help on using the changeset viewer.