Changeset 9729
- Timestamp:
- 09/09/11 14:01:36 (14 years ago)
- Location:
- issm/trunk
- Files:
-
- 4 added
- 4 deleted
- 76 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/EnumDefinitions/EnumDefinitions.h
r9728 r9729 158 158 MeshLowerelementsEnum, 159 159 MeshUpperelementsEnum, 160 MeshElementonbedEnum, 161 MeshElementonsurfaceEnum, 162 MeshVertexonbedEnum, 163 MeshVertexonsurfaceEnum, 160 164 /*}}}*/ 161 165 /*Datasets {{{1*/ … … 308 312 ConstantEnum, 309 313 ConvergedEnum, 310 ElementonbedEnum,311 ElementonsurfaceEnum,312 314 FillEnum, 313 315 FractionIncrementEnum, … … 327 329 GroundinglineMeltingRateEnum, 328 330 MisfitEnum, 329 NodeonbedEnum,330 NodeonsurfaceEnum,331 331 NumberNodeToElementConnectivityEnum, 332 332 PressureEnum, -
issm/trunk/src/c/modules/EnumToStringx/EnumToStringx.cpp
r9728 r9729 162 162 case MeshLowerelementsEnum : return "MeshLowerelements"; 163 163 case MeshUpperelementsEnum : return "MeshUpperelements"; 164 case MeshElementonbedEnum : return "MeshElementonbed"; 165 case MeshElementonsurfaceEnum : return "MeshElementonsurface"; 166 case MeshVertexonbedEnum : return "MeshVertexonbed"; 167 case MeshVertexonsurfaceEnum : return "MeshVertexonsurface"; 164 168 case ConstraintsEnum : return "Constraints"; 165 169 case ElementsEnum : return "Elements"; … … 275 279 case ConstantEnum : return "Constant"; 276 280 case ConvergedEnum : return "Converged"; 277 case ElementonbedEnum : return "Elementonbed";278 case ElementonsurfaceEnum : return "Elementonsurface";279 281 case FillEnum : return "Fill"; 280 282 case FractionIncrementEnum : return "FractionIncrement"; … … 294 296 case GroundinglineMeltingRateEnum : return "GroundinglineMeltingRate"; 295 297 case MisfitEnum : return "Misfit"; 296 case NodeonbedEnum : return "Nodeonbed";297 case NodeonsurfaceEnum : return "Nodeonsurface";298 298 case NumberNodeToElementConnectivityEnum : return "NumberNodeToElementConnectivity"; 299 299 case PressureEnum : return "Pressure"; -
issm/trunk/src/c/modules/ModelProcessorx/Balancethickness/CreateNodesBalancethickness.cpp
r9725 r9729 49 49 50 50 /*First fetch data: */ 51 iomodel->FetchData(7,ElementsEnum, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);51 iomodel->FetchData(7,ElementsEnum,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 52 52 53 53 if(continuous_galerkin){ … … 88 88 89 89 /*Clean fetched data: */ 90 iomodel->DeleteData(7,ElementsEnum, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);90 iomodel->DeleteData(7,ElementsEnum,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 91 91 92 92 /*Assign output pointer: */ -
issm/trunk/src/c/modules/ModelProcessorx/Balancethickness/UpdateElementsBalancethickness.cpp
r9725 r9729 48 48 49 49 if (dim==3){ 50 iomodel->FetchDataToInput(elements, ElementonbedEnum);51 iomodel->FetchDataToInput(elements, ElementonsurfaceEnum);50 iomodel->FetchDataToInput(elements,MeshElementonbedEnum); 51 iomodel->FetchDataToInput(elements,MeshElementonsurfaceEnum); 52 52 } 53 53 /*Free data: */ -
issm/trunk/src/c/modules/ModelProcessorx/BedSlope/CreateNodesBedSlope.cpp
r9725 r9729 36 36 37 37 /*First fetch data: */ 38 iomodel->FetchData(6, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);38 iomodel->FetchData(6,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 39 39 40 40 for (i=0;i<numberofvertices;i++){ … … 48 48 49 49 /*Clean fetched data: */ 50 iomodel->DeleteData(6, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);50 iomodel->DeleteData(6,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 51 51 52 52 /*Assign output pointer: */ -
issm/trunk/src/c/modules/ModelProcessorx/BedSlope/UpdateElementsBedSlope.cpp
r9725 r9729 39 39 40 40 if (dim==3){ 41 iomodel->FetchDataToInput(elements, ElementonbedEnum);42 iomodel->FetchDataToInput(elements, ElementonsurfaceEnum);41 iomodel->FetchDataToInput(elements,MeshElementonbedEnum); 42 iomodel->FetchDataToInput(elements,MeshElementonsurfaceEnum); 43 43 } 44 44 -
issm/trunk/src/c/modules/ModelProcessorx/DiagnosticHoriz/CreateLoadsDiagnosticHoriz.cpp
r9725 r9729 124 124 125 125 /*create penalties for nodes on the base of icesheet. We must have wb=ub*db/dx+vb*db/dy */ 126 iomodel->FetchData(&nodeonbed,NULL,NULL, NodeonbedEnum);126 iomodel->FetchData(&nodeonbed,NULL,NULL,MeshVertexonbedEnum); 127 127 iomodel->FetchData(&nodeonicesheet,NULL,NULL,MaskVertexongroundediceEnum); 128 128 iomodel->FetchData(&nodeonstokes,NULL,NULL,FlowequationBorderstokesEnum); -
issm/trunk/src/c/modules/ModelProcessorx/DiagnosticHoriz/CreateNodesDiagnosticHoriz.cpp
r9725 r9729 45 45 46 46 /*Create nodes: */ 47 iomodel->FetchData(9, NodeonbedEnum,NodeonsurfaceEnum,FlowequationBordermacayealEnum,FlowequationBorderstokesEnum,47 iomodel->FetchData(9,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,FlowequationBordermacayealEnum,FlowequationBorderstokesEnum, 48 48 MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,MaskVertexonwaterEnum,FlowequationVertexEquationEnum,DiagnosticReferentialEnum); 49 49 … … 58 58 59 59 /*Clean fetched data: */ 60 iomodel->DeleteData(9, NodeonbedEnum,NodeonsurfaceEnum,FlowequationBordermacayealEnum,FlowequationBorderstokesEnum,60 iomodel->DeleteData(9,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,FlowequationBordermacayealEnum,FlowequationBorderstokesEnum, 61 61 MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,MaskVertexonwaterEnum,FlowequationVertexEquationEnum,DiagnosticReferentialEnum); 62 62 -
issm/trunk/src/c/modules/ModelProcessorx/DiagnosticHoriz/UpdateElementsDiagnosticHoriz.cpp
r9725 r9729 64 64 65 65 if (dim==3){ 66 iomodel->FetchDataToInput(elements, ElementonbedEnum);67 iomodel->FetchDataToInput(elements, ElementonsurfaceEnum);66 iomodel->FetchDataToInput(elements,MeshElementonbedEnum); 67 iomodel->FetchDataToInput(elements,MeshElementonsurfaceEnum); 68 68 iomodel->FetchDataToInput(elements,VzEnum); 69 69 iomodel->FetchDataToInput(elements,SurfaceforcingsAccumulationRateEnum); -
issm/trunk/src/c/modules/ModelProcessorx/DiagnosticHutter/CreateNodesDiagnosticHutter.cpp
r9725 r9729 44 44 45 45 /*First fetch data: */ 46 iomodel->FetchData(7, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,ElementsEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);46 iomodel->FetchData(7,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,ElementsEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 47 47 CreateNumberNodeToElementConnectivity(iomodel); 48 48 … … 57 57 58 58 /*Clean fetched data: */ 59 iomodel->DeleteData(7, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,ElementsEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);59 iomodel->DeleteData(7,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,ElementsEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 60 60 61 61 /*Assign output pointer: */ -
issm/trunk/src/c/modules/ModelProcessorx/DiagnosticVert/CreateNodesDiagnosticVert.cpp
r9725 r9729 44 44 45 45 /*First fetch data: */ 46 iomodel->FetchData(6, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);46 iomodel->FetchData(6,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 47 47 48 48 for (i=0;i<numberofvertices;i++){ … … 56 56 57 57 /*Clean fetched data: */ 58 iomodel->DeleteData(6, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);58 iomodel->DeleteData(6,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 59 59 60 60 /*Assign output pointer: */ -
issm/trunk/src/c/modules/ModelProcessorx/DiagnosticVert/UpdateElementsDiagnosticVert.cpp
r9725 r9729 44 44 iomodel->FetchDataToInput(elements,BedEnum); 45 45 iomodel->FetchDataToInput(elements,MaskElementonfloatingiceEnum); 46 iomodel->FetchDataToInput(elements, ElementonbedEnum);47 iomodel->FetchDataToInput(elements, ElementonsurfaceEnum);46 iomodel->FetchDataToInput(elements,MeshElementonbedEnum); 47 iomodel->FetchDataToInput(elements,MeshElementonsurfaceEnum); 48 48 iomodel->FetchDataToInput(elements,MaskElementonwaterEnum); 49 49 iomodel->FetchDataToInput(elements,BasalforcingsMeltingRateEnum); -
issm/trunk/src/c/modules/ModelProcessorx/Enthalpy/CreateNodesEnthalpy.cpp
r9725 r9729 36 36 37 37 /*Create nodes and vertices: */ 38 iomodel->FetchData(6, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);38 iomodel->FetchData(6,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 39 39 40 40 for (i=0;i<numberofvertices;i++){ … … 48 48 49 49 /*Clean fetched data: */ 50 iomodel->DeleteData(6, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);50 iomodel->DeleteData(6,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 51 51 52 52 /*Assign output pointer: */ -
issm/trunk/src/c/modules/ModelProcessorx/Enthalpy/UpdateElementsEnthalpy.cpp
r9725 r9729 46 46 iomodel->FetchDataToInput(elements,FrictionQEnum); 47 47 iomodel->FetchDataToInput(elements,MaskElementonfloatingiceEnum); 48 iomodel->FetchDataToInput(elements, ElementonbedEnum);49 iomodel->FetchDataToInput(elements, ElementonsurfaceEnum);48 iomodel->FetchDataToInput(elements,MeshElementonbedEnum); 49 iomodel->FetchDataToInput(elements,MeshElementonsurfaceEnum); 50 50 iomodel->FetchDataToInput(elements,MaskElementonwaterEnum); 51 51 iomodel->FetchDataToInput(elements,FlowequationElementEquationEnum); -
issm/trunk/src/c/modules/ModelProcessorx/Hydrology/CreateNodesHydrology.cpp
r9725 r9729 36 36 37 37 /*Create nodes and vertices: */ 38 iomodel->FetchData(6, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);38 iomodel->FetchData(6,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 39 39 for (i=0;i<numberofvertices;i++){ 40 40 … … 45 45 } 46 46 } 47 iomodel->DeleteData(6, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);47 iomodel->DeleteData(6,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 48 48 49 49 /*Assign output pointer: */ -
issm/trunk/src/c/modules/ModelProcessorx/Hydrology/UpdateElementsHydrology.cpp
r9725 r9729 39 39 iomodel->FetchDataToInput(elements,FrictionQEnum); 40 40 iomodel->FetchDataToInput(elements,MaskElementonfloatingiceEnum); 41 iomodel->FetchDataToInput(elements, ElementonbedEnum);42 iomodel->FetchDataToInput(elements, ElementonsurfaceEnum);41 iomodel->FetchDataToInput(elements,MeshElementonbedEnum); 42 iomodel->FetchDataToInput(elements,MeshElementonsurfaceEnum); 43 43 iomodel->FetchDataToInput(elements,MaskElementonwaterEnum); 44 44 iomodel->FetchDataToInput(elements,FlowequationElementEquationEnum); -
issm/trunk/src/c/modules/ModelProcessorx/Melting/CreateLoadsMelting.cpp
r9725 r9729 35 35 36 36 //create penalties for nodes: no node can have a temperature over the melting point 37 iomodel->FetchData(2, NodeonbedEnum,ElementsEnum);37 iomodel->FetchData(2,MeshVertexonbedEnum,ElementsEnum); 38 38 CreateSingleNodeToElementConnectivity(iomodel); 39 39 40 40 for (i=0;i<numberofvertices;i++){ 41 41 if((iomodel->my_vertices[i]==1)){ 42 if (iomodel->Data( NodeonbedEnum)[i]){42 if (iomodel->Data(MeshVertexonbedEnum)[i]){ 43 43 loads->AddObject(new Pengrid(iomodel->loadcounter+i+1,i,iomodel,MeltingAnalysisEnum)); 44 44 } 45 45 } 46 46 } 47 iomodel->DeleteData(2, NodeonbedEnum,ElementsEnum);47 iomodel->DeleteData(2,MeshVertexonbedEnum,ElementsEnum); 48 48 49 49 /*Assign output pointer: */ -
issm/trunk/src/c/modules/ModelProcessorx/Melting/CreateNodesMelting.cpp
r9725 r9729 36 36 37 37 /*First fetch data: */ 38 iomodel->FetchData(6, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);38 iomodel->FetchData(6,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 39 39 for (i=0;i<numberofvertices;i++){ 40 40 … … 46 46 } 47 47 } 48 iomodel->DeleteData(6, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);48 iomodel->DeleteData(6,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 49 49 50 50 /*Assign output pointer: */ -
issm/trunk/src/c/modules/ModelProcessorx/Melting/UpdateElementsMelting.cpp
r9725 r9729 47 47 iomodel->FetchDataToInput(elements,FrictionQEnum); 48 48 iomodel->FetchDataToInput(elements,MaskElementonfloatingiceEnum); 49 iomodel->FetchDataToInput(elements, ElementonbedEnum);50 iomodel->FetchDataToInput(elements, ElementonsurfaceEnum);49 iomodel->FetchDataToInput(elements,MeshElementonbedEnum); 50 iomodel->FetchDataToInput(elements,MeshElementonsurfaceEnum); 51 51 iomodel->FetchDataToInput(elements,MaskElementonwaterEnum); 52 52 iomodel->FetchDataToInput(elements,FlowequationElementEquationEnum); -
issm/trunk/src/c/modules/ModelProcessorx/Prognostic/CreateLoadsPrognostic.cpp
r9725 r9729 64 64 double *nodeonbed=NULL; 65 65 iomodel->FetchData(&vertex_pairing,&numvertex_pairing,NULL,PrognosticVertexPairingEnum); 66 iomodel->FetchData(&nodeonbed,NULL,NULL, NodeonbedEnum);66 iomodel->FetchData(&nodeonbed,NULL,NULL,MeshVertexonbedEnum); 67 67 68 68 for(i=0;i<numvertex_pairing;i++){ -
issm/trunk/src/c/modules/ModelProcessorx/Prognostic/CreateNodesPrognostic.cpp
r9725 r9729 49 49 50 50 /*First fetch data: */ 51 iomodel->FetchData(7,ElementsEnum, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);51 iomodel->FetchData(7,ElementsEnum,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 52 52 if(continuous_galerkin){ 53 53 … … 88 88 89 89 /*Clean fetched data: */ 90 iomodel->DeleteData(7,ElementsEnum, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);90 iomodel->DeleteData(7,ElementsEnum,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 91 91 92 92 /*Assign output pointer: */ -
issm/trunk/src/c/modules/ModelProcessorx/Prognostic/UpdateElementsPrognostic.cpp
r9725 r9729 54 54 55 55 if (dim==3){ 56 iomodel->FetchDataToInput(elements, ElementonbedEnum);57 iomodel->FetchDataToInput(elements, ElementonsurfaceEnum);56 iomodel->FetchDataToInput(elements,MeshElementonbedEnum); 57 iomodel->FetchDataToInput(elements,MeshElementonsurfaceEnum); 58 58 iomodel->FetchDataToInput(elements,PressureEnum); 59 59 iomodel->FetchDataToInput(elements,TemperatureEnum); -
issm/trunk/src/c/modules/ModelProcessorx/SurfaceSlope/CreateNodesSurfaceSlope.cpp
r9725 r9729 36 36 37 37 /*First fetch data: */ 38 iomodel->FetchData(6, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);38 iomodel->FetchData(6,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 39 39 40 40 for (i=0;i<numberofvertices;i++){ … … 49 49 50 50 /*Clean fetched data: */ 51 iomodel->DeleteData(6, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);51 iomodel->DeleteData(6,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 52 52 53 53 /*Assign output pointer: */ -
issm/trunk/src/c/modules/ModelProcessorx/SurfaceSlope/UpdateElementsSurfaceSlope.cpp
r9725 r9729 39 39 40 40 if (dim==3){ 41 iomodel->FetchDataToInput(elements, ElementonbedEnum);42 iomodel->FetchDataToInput(elements, ElementonsurfaceEnum);41 iomodel->FetchDataToInput(elements,MeshElementonbedEnum); 42 iomodel->FetchDataToInput(elements,MeshElementonsurfaceEnum); 43 43 } 44 44 -
issm/trunk/src/c/modules/ModelProcessorx/Thermal/CreateNodesThermal.cpp
r9725 r9729 36 36 37 37 /*Create nodes and vertices: */ 38 iomodel->FetchData(6, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);38 iomodel->FetchData(6,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 39 39 40 40 for (i=0;i<numberofvertices;i++){ … … 48 48 49 49 /*Clean fetched data: */ 50 iomodel->DeleteData(6, NodeonbedEnum,NodeonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);50 iomodel->DeleteData(6,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum); 51 51 52 52 /*Assign output pointer: */ -
issm/trunk/src/c/modules/ModelProcessorx/Thermal/UpdateElementsThermal.cpp
r9725 r9729 48 48 iomodel->FetchDataToInput(elements,FrictionQEnum); 49 49 iomodel->FetchDataToInput(elements,MaskElementonfloatingiceEnum); 50 iomodel->FetchDataToInput(elements, ElementonbedEnum);51 iomodel->FetchDataToInput(elements, ElementonsurfaceEnum);50 iomodel->FetchDataToInput(elements,MeshElementonbedEnum); 51 iomodel->FetchDataToInput(elements,MeshElementonsurfaceEnum); 52 52 iomodel->FetchDataToInput(elements,MaskElementonwaterEnum); 53 53 iomodel->FetchDataToInput(elements,FlowequationElementEquationEnum); -
issm/trunk/src/c/modules/StringToEnumx/StringToEnumx.cpp
r9728 r9729 160 160 else if (strcmp(name,"MeshLowerelements")==0) return MeshLowerelementsEnum; 161 161 else if (strcmp(name,"MeshUpperelements")==0) return MeshUpperelementsEnum; 162 else if (strcmp(name,"MeshElementonbed")==0) return MeshElementonbedEnum; 163 else if (strcmp(name,"MeshElementonsurface")==0) return MeshElementonsurfaceEnum; 164 else if (strcmp(name,"MeshVertexonbed")==0) return MeshVertexonbedEnum; 165 else if (strcmp(name,"MeshVertexonsurface")==0) return MeshVertexonsurfaceEnum; 162 166 else if (strcmp(name,"Constraints")==0) return ConstraintsEnum; 163 167 else if (strcmp(name,"Elements")==0) return ElementsEnum; … … 273 277 else if (strcmp(name,"Constant")==0) return ConstantEnum; 274 278 else if (strcmp(name,"Converged")==0) return ConvergedEnum; 275 else if (strcmp(name,"Elementonbed")==0) return ElementonbedEnum;276 else if (strcmp(name,"Elementonsurface")==0) return ElementonsurfaceEnum;277 279 else if (strcmp(name,"Fill")==0) return FillEnum; 278 280 else if (strcmp(name,"FractionIncrement")==0) return FractionIncrementEnum; … … 292 294 else if (strcmp(name,"GroundinglineMeltingRate")==0) return GroundinglineMeltingRateEnum; 293 295 else if (strcmp(name,"Misfit")==0) return MisfitEnum; 294 else if (strcmp(name,"Nodeonbed")==0) return NodeonbedEnum;295 else if (strcmp(name,"Nodeonsurface")==0) return NodeonsurfaceEnum;296 296 else if (strcmp(name,"NumberNodeToElementConnectivity")==0) return NumberNodeToElementConnectivityEnum; 297 297 else if (strcmp(name,"Pressure")==0) return PressureEnum; -
issm/trunk/src/c/objects/Elements/Penta.cpp
r9728 r9729 6575 6575 6576 6576 bool onbed; 6577 inputs->GetParameterValue(&onbed, ElementonbedEnum);6577 inputs->GetParameterValue(&onbed,MeshElementonbedEnum); 6578 6578 return onbed; 6579 6579 } … … 6651 6651 6652 6652 bool onsurface; 6653 inputs->GetParameterValue(&onsurface, ElementonsurfaceEnum);6653 inputs->GetParameterValue(&onsurface,MeshElementonsurfaceEnum); 6654 6654 return onsurface; 6655 6655 } -
issm/trunk/src/c/objects/Elements/Tria.cpp
r9728 r9729 4001 4001 4002 4002 bool onbed; 4003 inputs->GetParameterValue(&onbed, ElementonbedEnum);4003 inputs->GetParameterValue(&onbed,MeshElementonbedEnum); 4004 4004 return onbed; 4005 4005 } -
issm/trunk/src/c/objects/Node.cpp
r9719 r9729 54 54 //intialize inputs, and add as many inputs per element as requested: 55 55 this->inputs=new Inputs(); 56 if (iomodel->Data( NodeonbedEnum)) this->inputs->AddInput(new BoolInput(NodeonbedEnum,(IssmBool)iomodel->Data(NodeonbedEnum)[io_index]));57 if (iomodel->Data( NodeonsurfaceEnum)) this->inputs->AddInput(new BoolInput(NodeonsurfaceEnum,(IssmBool)iomodel->Data(NodeonsurfaceEnum)[io_index]));56 if (iomodel->Data(MeshVertexonbedEnum)) this->inputs->AddInput(new BoolInput(MeshVertexonbedEnum,(IssmBool)iomodel->Data(MeshVertexonbedEnum)[io_index])); 57 if (iomodel->Data(MeshVertexonsurfaceEnum)) this->inputs->AddInput(new BoolInput(MeshVertexonsurfaceEnum,(IssmBool)iomodel->Data(MeshVertexonsurfaceEnum)[io_index])); 58 58 if (iomodel->Data(MaskVertexonfloatingiceEnum)) this->inputs->AddInput(new BoolInput(MaskVertexonfloatingiceEnum,(IssmBool)iomodel->Data(MaskVertexonfloatingiceEnum)[io_index])); 59 59 if (iomodel->Data(MaskVertexongroundediceEnum)) this->inputs->AddInput(new BoolInput(MaskVertexongroundediceEnum,(IssmBool)iomodel->Data(MaskVertexongroundediceEnum)[io_index])); … … 75 75 if (dim==3){ 76 76 /*We have a 3d mesh, we may have collapsed elements, hence dead nodes. Freeze them out: */ 77 if (!iomodel->Data( NodeonbedEnum)) _error_("iomodel->nodeonbed is NULL");77 if (!iomodel->Data(MeshVertexonbedEnum)) _error_("iomodel->nodeonbed is NULL"); 78 78 if (!iomodel->Data(FlowequationVertexEquationEnum)) _error_("iomodel->vertices_type is NULL"); 79 if (iomodel->Data(FlowequationVertexEquationEnum)[io_index]==MacAyealApproximationEnum && !iomodel->Data( NodeonbedEnum)[io_index]){79 if (iomodel->Data(FlowequationVertexEquationEnum)[io_index]==MacAyealApproximationEnum && !iomodel->Data(MeshVertexonbedEnum)[io_index]){ 80 80 for(k=1;k<=gsize;k++) this->FreezeDof(k); 81 81 } 82 82 if (iomodel->Data(FlowequationVertexEquationEnum)[io_index]==MacAyealPattynApproximationEnum && iomodel->Data(FlowequationBordermacayealEnum)[io_index]){ 83 if(!iomodel->Data( NodeonbedEnum)[io_index]){83 if(!iomodel->Data(MeshVertexonbedEnum)[io_index]){ 84 84 for(k=1;k<=gsize;k++) this->FreezeDof(k); 85 85 } 86 86 } 87 87 if (iomodel->Data(FlowequationVertexEquationEnum)[io_index]==MacAyealStokesApproximationEnum && iomodel->Data(FlowequationBordermacayealEnum)[io_index]){ 88 if(!iomodel->Data( NodeonbedEnum)[io_index]){88 if(!iomodel->Data(MeshVertexonbedEnum)[io_index]){ 89 89 for(k=1;k<=2;k++) this->FreezeDof(k); 90 90 } … … 121 121 if (dim==3){ 122 122 /*On a 3d mesh, we may have collapsed elements, hence dead nodes. Freeze them out: */ 123 _assert_(iomodel->Data( NodeonbedEnum));124 if (!iomodel->Data( NodeonbedEnum)[io_index]){123 _assert_(iomodel->Data(MeshVertexonbedEnum)); 124 if (!iomodel->Data(MeshVertexonbedEnum)[io_index]){ 125 125 for(k=1;k<=gsize;k++){ 126 126 this->FreezeDof(k); … … 738 738 739 739 /*recover parameters: */ 740 inputs->GetParameterValue(&onbed, NodeonbedEnum);740 inputs->GetParameterValue(&onbed,MeshVertexonbedEnum); 741 741 742 742 return onbed; … … 771 771 772 772 /*recover parameters: */ 773 inputs->GetParameterValue(&onsurface, NodeonsurfaceEnum);773 inputs->GetParameterValue(&onsurface,MeshVertexonsurfaceEnum); 774 774 775 775 return onsurface; -
issm/trunk/src/m/classes/mesh.m
r9728 r9729 22 22 numberofvertices2d = modelfield('default',0,'marshall',true,'format','Integer'); 23 23 numberofelements2d = modelfield('default',0,'marshall',true,'format','Integer'); 24 nodeconnectivity = modelfield('default',NaN,'marshall',false);24 vertexconnectivity = modelfield('default',NaN,'marshall',false); 25 25 elementconnectivity = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',3); 26 upper nodes= modelfield('default',NaN,'marshall',false);26 uppervertex = modelfield('default',NaN,'marshall',false); 27 27 upperelements = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',2); 28 28 lowerelements = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',2); 29 lowernodes = modelfield('default',NaN,'marshall',false); 29 lowervertex = modelfield('default',NaN,'marshall',false); 30 elementonbed = modelfield('default',NaN,'marshall',true,'format','BooleanMat','mattype',2); 31 elementonsurface = modelfield('default',NaN,'marshall',true,'format','BooleanMat','mattype',2); 32 vertexonbed = modelfield('default',NaN,'marshall',true,'format','BooleanMat','mattype',1); 33 vertexonsurface = modelfield('default',NaN,'marshall',true,'format','BooleanMat','mattype',1); 30 34 end 31 35 methods -
issm/trunk/src/m/classes/model/model.m
r9728 r9729 52 52 y2d = modelfield('default',NaN,'marshall',false); 53 53 54 elementonbed = modelfield('default',NaN,'marshall',true,'format','BooleanMat','mattype',2);55 elementonsurface = modelfield('default',NaN,'marshall',true,'format','BooleanMat','mattype',2);56 nodeonbed = modelfield('default',NaN,'marshall',true,'format','BooleanMat','mattype',1);57 nodeonsurface = modelfield('default',NaN,'marshall',true,'format','BooleanMat','mattype',1);58 54 %}}} 59 55 end … … 311 307 if isfield(structmd,'numberofelements2d'), md.mesh.numberofelements2d=structmd.numberofelements2d; end 312 308 if isfield(structmd,'numberofnodes2d'), md.mesh.numberofvertices2d=structmd.numberofnodes2d; end 313 if isfield(structmd,'nodeconnectivity'), md.mesh.nodeconnectivityension=structmd.nodeconnectivity; end 314 if isfield(structmd,'elementconnectivity'), md.mesh.elementconnectivityension=structmd.elementconnectivity; end 315 if isfield(structmd,'uppernodes'), md.mesh.uppernodesension=structmd.uppernodes; end 316 if isfield(structmd,'lowernodes'), md.mesh.lowernodesension=structmd.lowernodes; end 317 if isfield(structmd,'upperelements'), md.mesh.upperelementsension=structmd.upperelements; end 318 if isfield(structmd,'lowerelements'), md.mesh.lowerelementsension=structmd.lowerelements; end 309 if isfield(structmd,'nodeconnectivity'), md.mesh.vertexconnectivity=structmd.nodeconnectivity; end 310 if isfield(structmd,'elementconnectivity'), md.mesh.elementconnectivity=structmd.elementconnectivity; end 311 if isfield(structmd,'uppernodes'), md.mesh.uppervertex=structmd.uppernodes; end 312 if isfield(structmd,'lowernodes'), md.mesh.lowervertex=structmd.lowernodes; end 313 if isfield(structmd,'upperelements'), md.mesh.upperelements=structmd.upperelements; end 314 if isfield(structmd,'lowerelements'), md.mesh.lowerelements=structmd.lowerelements; end 315 if isfield(structmd,'elementonbed'), md.mesh.elementonbed=structmd.elementonbed; end 316 if isfield(structmd,'elementonsurface'), md.mesh.elementonsurface=structmd.elementonsurface; end 317 if isfield(structmd,'nodeonsurface'), md.mesh.vertexonsurface=structmd.nodeonsurface; end 318 if isfield(structmd,'nodeonbed'), md.mesh.vertexonbed=structmd.nodeonbed; end 319 319 320 320 %Field changes -
issm/trunk/src/m/model/bamg.m
r9728 r9729 329 329 md.mesh.numberofvertices=length(md.x); 330 330 md.z=zeros(md.mesh.numberofvertices,1); 331 md. nodeonbed=ones(md.mesh.numberofvertices,1);331 md.mesh.vertexonbed=ones(md.mesh.numberofvertices,1); 332 332 md.mask.vertexonwater=zeros(md.mesh.numberofvertices,1); 333 md. nodeonsurface=ones(md.mesh.numberofvertices,1);334 md. elementonbed=ones(md.mesh.numberofelements,1);335 md. elementonsurface=ones(md.mesh.numberofelements,1);333 md.mesh.vertexonsurface=ones(md.mesh.numberofvertices,1); 334 md.mesh.elementonbed=ones(md.mesh.numberofelements,1); 335 md.mesh.elementonsurface=ones(md.mesh.numberofelements,1); 336 336 md.mesh.vertexonboundary=zeros(md.mesh.numberofvertices,1); md.mesh.vertexonboundary(md.mesh.segments(:,1:2))=1; 337 337 md.mesh.elementconnectivity=md.private.bamg.mesh.ElementConnectivity; -
issm/trunk/src/m/model/collapse.m
r9728 r9729 41 41 42 42 %bedinfo and surface info 43 md. elementonbed=ones(md.mesh.numberofelements2d,1);44 md. elementonsurface=ones(md.mesh.numberofelements2d,1);45 md. nodeonbed=ones(md.mesh.numberofvertices2d,1);46 md. nodeonsurface=ones(md.mesh.numberofvertices2d,1);43 md.mesh.elementonbed=ones(md.mesh.numberofelements2d,1); 44 md.mesh.elementonsurface=ones(md.mesh.numberofelements2d,1); 45 md.mesh.vertexonbed=ones(md.mesh.numberofvertices2d,1); 46 md.mesh.vertexonsurface=ones(md.mesh.numberofvertices2d,1); 47 47 48 48 %elementstype … … 98 98 99 99 %Keep a trace of lower and upper nodes 100 md.mesh.lower nodes=NaN;101 md.mesh.upper nodes=NaN;100 md.mesh.lowervertex=NaN; 101 md.mesh.uppervertex=NaN; 102 102 103 103 %Remove old mesh -
issm/trunk/src/m/model/contourenvelope.m
r9728 r9729 35 35 %Now, build the connectivity tables for this mesh. 36 36 %Computing connectivity 37 if size(md.mesh. nodeconnectivity,1)~=md.mesh.numberofvertices,38 md.mesh. nodeconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices);37 if size(md.mesh.vertexconnectivity,1)~=md.mesh.numberofvertices, 38 md.mesh.vertexconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices); 39 39 end 40 40 if size(md.mesh.elementconnectivity,1)~=md.mesh.numberofelements, 41 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh. nodeconnectivity);41 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh.vertexconnectivity); 42 42 end 43 43 -
issm/trunk/src/m/model/display/displaymesh.m
r9719 r9729 38 38 fielddisplay(md,'bamg','Geometry and 2d mesh properties (if generated by Bamg)'); 39 39 fielddisplay(md,'penalties','penalties list'); 40 fielddisplay(md,' nodeonbed','lower nodes flags list');41 fielddisplay(md,' elementonbed','lower elements flags list');42 fielddisplay(md,' nodeonsurface','upper nodes flags list');43 fielddisplay(md,' elementonsurface','upper elements flags list');40 fielddisplay(md,'mesh.vertexonbed','lower nodes flags list'); 41 fielddisplay(md,'mesh.elementonbed','lower elements flags list'); 42 fielddisplay(md,'mesh.vertexonsurface','upper nodes flags list'); 43 fielddisplay(md,'mesh.elementonsurface','upper elements flags list'); -
issm/trunk/src/m/model/display/displayparameters.m
r9610 r9729 17 17 fielddisplay(md,'bathymetry','bathymetry elevation (with respect to sea level) [m]'); 18 18 fielddisplay(md,'firn_layer','firn layer height [m]'); 19 fielddisplay(md,' elementonbed','element on bed flags list');20 fielddisplay(md,' elementonsurface','element on surface flags list');21 fielddisplay(md,' nodeonbed','node on bed flags list');22 fielddisplay(md,' nodeonsurface','node on surface flags list');19 fielddisplay(md,'mesh.elementonbed','element on bed flags list'); 20 fielddisplay(md,'mesh.elementonsurface','element on surface flags list'); 21 fielddisplay(md,'mesh.vertexonbed','node on bed flags list'); 22 fielddisplay(md,'mesh.vertexonsurface','node on surface flags list'); 23 23 24 24 disp(sprintf('\n physical parameters:')); -
issm/trunk/src/m/model/extrude.m
r9728 r9729 87 87 88 88 %Keep a trace of lower and upper nodes 89 mesh.lower nodes=NaN*ones(number_nodes3d,1);90 mesh.upper nodes=NaN*ones(number_nodes3d,1);91 mesh.lower nodes(md.mesh.numberofvertices+1:end)=1:(numlayers-1)*md.mesh.numberofvertices;92 mesh.upper nodes(1:(numlayers-1)*md.mesh.numberofvertices)=md.mesh.numberofvertices+1:number_nodes3d;93 md.mesh.lower nodes=mesh.lowernodes;94 md.mesh.upper nodes=mesh.uppernodes;89 mesh.lowervertex=NaN*ones(number_nodes3d,1); 90 mesh.uppervertex=NaN*ones(number_nodes3d,1); 91 mesh.lowervertex(md.mesh.numberofvertices+1:end)=1:(numlayers-1)*md.mesh.numberofvertices; 92 mesh.uppervertex(1:(numlayers-1)*md.mesh.numberofvertices)=md.mesh.numberofvertices+1:number_nodes3d; 93 md.mesh.lowervertex=mesh.lowervertex; 94 md.mesh.uppervertex=mesh.uppervertex; 95 95 96 96 %same for lower and upper elements … … 148 148 149 149 %bedinfo and surface info 150 md. elementonbed=project3d(md,'vector',ones(md.mesh.numberofelements2d,1),'type','element','layer',1);151 md. elementonsurface=project3d(md,'vector',ones(md.mesh.numberofelements2d,1),'type','element','layer',md.mesh.numberoflayers-1);152 md. nodeonbed=project3d(md,'vector',ones(md.mesh.numberofvertices2d,1),'type','node','layer',1);153 md. nodeonsurface=project3d(md,'vector',ones(md.mesh.numberofvertices2d,1),'type','node','layer',md.mesh.numberoflayers);150 md.mesh.elementonbed=project3d(md,'vector',ones(md.mesh.numberofelements2d,1),'type','element','layer',1); 151 md.mesh.elementonsurface=project3d(md,'vector',ones(md.mesh.numberofelements2d,1),'type','element','layer',md.mesh.numberoflayers-1); 152 md.mesh.vertexonbed=project3d(md,'vector',ones(md.mesh.numberofvertices2d,1),'type','node','layer',1); 153 md.mesh.vertexonsurface=project3d(md,'vector',ones(md.mesh.numberofvertices2d,1),'type','node','layer',md.mesh.numberoflayers); 154 154 155 155 %elementstype -
issm/trunk/src/m/model/mesh/findsegments.m
r9728 r9729 19 19 error(' ''mesh.elementconnectivity'' option does not have thge right size.'); 20 20 else 21 mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh. nodeconnectivity);21 mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh.vertexconnectivity); 22 22 end 23 23 end -
issm/trunk/src/m/model/mesh/meshconvert.m
r9725 r9729 40 40 md.mesh.numberofvertices=length(md.x); 41 41 md.z=zeros(md.mesh.numberofvertices,1); 42 md. nodeonbed=ones(md.mesh.numberofvertices,1);42 md.mesh.vertexonbed=ones(md.mesh.numberofvertices,1); 43 43 md.mask.vertexonwater=zeros(md.mesh.numberofvertices,1); 44 md. nodeonsurface=ones(md.mesh.numberofvertices,1);45 md. elementonbed=ones(md.mesh.numberofelements,1);46 md. elementonsurface=ones(md.mesh.numberofelements,1);44 md.mesh.vertexonsurface=ones(md.mesh.numberofvertices,1); 45 md.mesh.elementonbed=ones(md.mesh.numberofelements,1); 46 md.mesh.elementonsurface=ones(md.mesh.numberofelements,1); 47 47 md.mesh.vertexonboundary=zeros(md.mesh.numberofvertices,1); md.mesh.vertexonboundary(md.mesh.segments(:,1:2))=1; -
issm/trunk/src/m/model/mesh/meshnodensity.m
r9728 r9729 59 59 md.z=zeros(md.mesh.numberofvertices,1); 60 60 md.mesh.vertexonboundary=zeros(md.mesh.numberofvertices,1); md.mesh.vertexonboundary(md.mesh.segments(:,1:2))=1; 61 md. nodeonbed=ones(md.mesh.numberofvertices,1);62 md. nodeonsurface=ones(md.mesh.numberofvertices,1);63 md. elementonbed=ones(md.mesh.numberofelements,1);64 md. elementonsurface=ones(md.mesh.numberofelements,1);61 md.mesh.vertexonbed=ones(md.mesh.numberofvertices,1); 62 md.mesh.vertexonsurface=ones(md.mesh.numberofvertices,1); 63 md.mesh.elementonbed=ones(md.mesh.numberofelements,1); 64 md.mesh.elementonsurface=ones(md.mesh.numberofelements,1); 65 65 66 66 %Now, build the connectivity tables for this mesh. 67 md.mesh. nodeconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices);68 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh. nodeconnectivity);67 md.mesh.vertexconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices); 68 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh.vertexconnectivity); 69 69 70 70 %type of model -
issm/trunk/src/m/model/mesh/meshrefine.m
r9728 r9729 23 23 md.z=zeros(md.mesh.numberofvertices,1); 24 24 md.mesh.vertexonboundary=zeros(md.mesh.numberofvertices,1); md.mesh.vertexonboundary(md.mesh.segments(:,1:2))=1; 25 md. nodeonbed=ones(md.mesh.numberofvertices,1);26 md. nodeonsurface=ones(md.mesh.numberofvertices,1);27 md. elementonbed=ones(md.mesh.numberofelements,1);28 md. elementonsurface=ones(md.mesh.numberofelements,1);25 md.mesh.vertexonbed=ones(md.mesh.numberofvertices,1); 26 md.mesh.vertexonsurface=ones(md.mesh.numberofvertices,1); 27 md.mesh.elementonbed=ones(md.mesh.numberofelements,1); 28 md.mesh.elementonsurface=ones(md.mesh.numberofelements,1); 29 29 30 30 %Now, build the connectivity tables for this mesh. 31 md.mesh. nodeconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices);32 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh. nodeconnectivity);31 md.mesh.vertexconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices); 32 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh.vertexconnectivity); 33 33 34 34 %type of model -
issm/trunk/src/m/model/mesh/meshyams.m
r9728 r9729 95 95 %rifts, because the segments are used in YamsCall to freeze the rifts elements during refinement. 96 96 if md.rifts.numrifts, 97 md.mesh. nodeconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices);98 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh. nodeconnectivity);97 md.mesh.vertexconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices); 98 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh.vertexconnectivity); 99 99 md.mesh.segments=findsegments(md); 100 100 md=meshyamsrecreateriftsegments(md); … … 106 106 107 107 %Now, build the connectivity tables for this mesh. 108 md.mesh. nodeconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices);109 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh. nodeconnectivity);108 md.mesh.vertexconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices); 109 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh.vertexconnectivity); 110 110 111 111 %recreate segments … … 115 115 %Fill in rest of fields: 116 116 md.z=zeros(md.mesh.numberofvertices,1); 117 md. nodeonbed=ones(md.mesh.numberofvertices,1);118 md. nodeonsurface=ones(md.mesh.numberofvertices,1);119 md. elementonbed=ones(md.mesh.numberofelements,1);120 md. elementonsurface=ones(md.mesh.numberofelements,1);117 md.mesh.vertexonbed=ones(md.mesh.numberofvertices,1); 118 md.mesh.vertexonsurface=ones(md.mesh.numberofvertices,1); 119 md.mesh.elementonbed=ones(md.mesh.numberofelements,1); 120 md.mesh.elementonsurface=ones(md.mesh.numberofelements,1); 121 121 if ~strcmp(groundeddomain,'N/A'), 122 122 nodeground=ContourToMesh(md.elements,md.x,md.y,groundeddomain,'node',2); -
issm/trunk/src/m/model/mesh/rifts/meshaddrifts.m
r9728 r9729 81 81 %finish up "a la" mesh.h 82 82 md.mesh.vertexonboundary=zeros(md.mesh.numberofvertices,1); md.mesh.vertexonboundary(md.mesh.segments(:,1:2))=1; 83 md. nodeonbed=ones(md.mesh.numberofvertices,1);84 md. nodeonsurface=ones(md.mesh.numberofvertices,1);85 md. elementonbed=ones(md.mesh.numberofelements,1);86 md. elementonsurface=ones(md.mesh.numberofelements,1);83 md.mesh.vertexonbed=ones(md.mesh.numberofvertices,1); 84 md.mesh.vertexonsurface=ones(md.mesh.numberofvertices,1); 85 md.mesh.elementonbed=ones(md.mesh.numberofelements,1); 86 md.mesh.elementonsurface=ones(md.mesh.numberofelements,1); 87 87 88 88 %Now, build the connectivity tables for this mesh. 89 md.mesh. nodeconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices);90 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh. nodeconnectivity);89 md.mesh.vertexconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices); 90 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh.vertexconnectivity); 91 91 92 92 %type of model -
issm/trunk/src/m/model/mesh/rifts/meshprocessoutsiderifts.m
r9725 r9729 89 89 md.rifts.numrifts=length(md.rifts.riftstruct); 90 90 md.flowequation.element_equation=3*ones(md.mesh.numberofelements,1); 91 md. nodeonbed=ones(md.mesh.numberofvertices,1);92 md. nodeonsurface=ones(md.mesh.numberofvertices,1);93 md. elementonbed=ones(md.mesh.numberofelements,1);94 md. elementonsurface=ones(md.mesh.numberofelements,1);91 md.mesh.vertexonbed=ones(md.mesh.numberofvertices,1); 92 md.mesh.vertexonsurface=ones(md.mesh.numberofvertices,1); 93 md.mesh.elementonbed=ones(md.mesh.numberofelements,1); 94 md.mesh.elementonsurface=ones(md.mesh.numberofelements,1); -
issm/trunk/src/m/model/mesh/rifts/meshprocessrifts.m
r9728 r9729 39 39 md.rifts.numrifts=length(md.rifts.riftstruct); 40 40 md.flowequation.element_equation=3*ones(md.mesh.numberofelements,1); 41 md. nodeonbed=ones(md.mesh.numberofvertices,1);42 md. nodeonsurface=ones(md.mesh.numberofvertices,1);43 md. elementonbed=ones(md.mesh.numberofelements,1);44 md. elementonsurface=ones(md.mesh.numberofelements,1);41 md.mesh.vertexonbed=ones(md.mesh.numberofvertices,1); 42 md.mesh.vertexonsurface=ones(md.mesh.numberofvertices,1); 43 md.mesh.elementonbed=ones(md.mesh.numberofelements,1); 44 md.mesh.elementonsurface=ones(md.mesh.numberofelements,1); 45 45 46 46 %get coordinates of rift tips -
issm/trunk/src/m/model/mesh/setmesh.m
r9728 r9729 73 73 md.z=zeros(md.mesh.numberofvertices,1); 74 74 md.mesh.vertexonboundary=zeros(md.mesh.numberofvertices,1); md.mesh.vertexonboundary(md.mesh.segments(:,1:2))=1; 75 md. nodeonbed=ones(md.mesh.numberofvertices,1);76 md. nodeonsurface=ones(md.mesh.numberofvertices,1);77 md. elementonbed=ones(md.mesh.numberofelements,1);78 md. elementonsurface=ones(md.mesh.numberofelements,1);75 md.mesh.vertexonbed=ones(md.mesh.numberofvertices,1); 76 md.mesh.vertexonsurface=ones(md.mesh.numberofvertices,1); 77 md.mesh.elementonbed=ones(md.mesh.numberofelements,1); 78 md.mesh.elementonsurface=ones(md.mesh.numberofelements,1); 79 79 80 80 %Now, build the connectivity tables for this mesh. 81 md.mesh. nodeconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices);82 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh. nodeconnectivity);81 md.mesh.vertexconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices); 82 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh.vertexconnectivity); 83 83 84 84 %type of model -
issm/trunk/src/m/model/modelextract.m
r9728 r9729 123 123 md2.elements=elements_2; 124 124 125 %mesh.upper nodes mesh.lowernodes125 %mesh.uppervertex mesh.lowervertex 126 126 if md1.dim==3 127 md2.mesh.upper nodes=md1.mesh.uppernodes(pos_node);128 pos=find(~isnan(md2.mesh.upper nodes));129 md2.mesh.upper nodes(pos)=Pnode(md2.mesh.uppernodes(pos));130 131 md2.mesh.lower nodes=md1.mesh.lowernodes(pos_node);132 pos=find(~isnan(md2.mesh.lower nodes));133 md2.mesh.lower nodes(pos)=Pnode(md2.mesh.lowernodes(pos));127 md2.mesh.uppervertex=md1.mesh.uppervertex(pos_node); 128 pos=find(~isnan(md2.mesh.uppervertex)); 129 md2.mesh.uppervertex(pos)=Pnode(md2.mesh.uppervertex(pos)); 130 131 md2.mesh.lowervertex=md1.mesh.lowervertex(pos_node); 132 pos=find(~isnan(md2.mesh.lowervertex)); 133 md2.mesh.lowervertex(pos)=Pnode(md2.mesh.lowervertex(pos)); 134 134 135 135 md2.mesh.upperelements=md1.mesh.upperelements(pos_elem); … … 203 203 %recreate segments 204 204 if md1.dim==2 205 md2.mesh. nodeconnectivity=NodeConnectivity(md2.elements,md2.numberofnodes);206 md2.mesh.elementconnectivity=ElementConnectivity(md2.elements,md2.mesh. nodeconnectivity);205 md2.mesh.vertexconnectivity=NodeConnectivity(md2.elements,md2.numberofnodes); 206 md2.mesh.elementconnectivity=ElementConnectivity(md2.elements,md2.mesh.vertexconnectivity); 207 207 md2.segments=contourenvelope(md2); 208 208 md2.mesh.vertexonboundary=zeros(numberofnodes2,1); md2.nodeonboundary(md2.segments(:,1:2))=1; -
issm/trunk/src/m/model/partition/AreaAverageOntoPartition.m
r9728 r9729 22 22 md.mesh.numberofelements=md.mesh.numberofelements2d; 23 23 md.vertex_weight=[]; 24 md.mesh. nodeconnectivity=[];24 md.mesh.vertexconnectivity=[]; 25 25 26 26 %run connectivity routine -
issm/trunk/src/m/model/partition/adjacency.m
r9728 r9729 19 19 20 20 %get node connectivity 21 md.mesh. nodeconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices);21 md.mesh.vertexconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices); 22 22 23 connectivity=md.mesh. nodeconnectivity(:,1:end-1);23 connectivity=md.mesh.vertexconnectivity(:,1:end-1); 24 24 pos=find(connectivity); 25 25 connectivity(pos)=areas(connectivity(pos))/3; -
issm/trunk/src/m/model/partition/partitioner.m
r9728 r9729 40 40 md.mesh.numberofelements=md.mesh.numberofelements2d; 41 41 md.qmu.vertex_weight=[]; 42 md.mesh. nodeconnectivity=[];42 md.mesh.vertexconnectivity=[]; 43 43 end 44 44 -
issm/trunk/src/m/model/setmask2.m
r9728 r9729 28 28 29 29 %Now, build the connectivity tables for this mesh. 30 if size(md.mesh. nodeconnectivity,1)~=md.mesh.numberofvertices,31 md.mesh. nodeconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices);30 if size(md.mesh.vertexconnectivity,1)~=md.mesh.numberofvertices, 31 md.mesh.vertexconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices); 32 32 end 33 33 if size(md.mesh.elementconnectivity,1)~=md.mesh.numberofelements, 34 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh. nodeconnectivity);34 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh.vertexconnectivity); 35 35 end 36 36 … … 125 125 %check that no node thinks it's on an ice shelf or ice sheet, and lies actually in the middle of the water. 126 126 nodesgrounded=find(~vertexonwater); 127 lengthconnectivity=size(md.mesh. nodeconnectivity,2);128 groundedcounters=md.mesh. nodeconnectivity(nodesgrounded,lengthconnectivity);129 groundedconnectivity=md.mesh. nodeconnectivity(nodesgrounded,1:lengthconnectivity-1);127 lengthconnectivity=size(md.mesh.vertexconnectivity,2); 128 groundedcounters=md.mesh.vertexconnectivity(nodesgrounded,lengthconnectivity); 129 groundedconnectivity=md.mesh.vertexconnectivity(nodesgrounded,1:lengthconnectivity-1); 130 130 pos=find(groundedconnectivity); 131 131 groundedconnectivity(pos)=elementonwater(groundedconnectivity(pos)); -
issm/trunk/src/m/utils/BC/SetIceSheetBC.m
r9725 r9729 60 60 if (length(md.initialization.temperature)==md.mesh.numberofvertices), 61 61 md.thermal.spctemperature=NaN*ones(md.mesh.numberofvertices,1); 62 pos=find(md. nodeonsurface); md.thermal.spctemperature(pos)=md.initialization.temperature(pos); %impose observed temperature on surface62 pos=find(md.mesh.vertexonsurface); md.thermal.spctemperature(pos)=md.initialization.temperature(pos); %impose observed temperature on surface 63 63 if (length(md.basalforcings.geothermalflux)~=md.mesh.numberofvertices), 64 64 md.basalforcings.geothermalflux=50*10^-3*ones(md.mesh.numberofvertices,1); %50 mW/m^2 -
issm/trunk/src/m/utils/BC/SetIceShelfBC.m
r9725 r9729 92 92 if (length(md.initialization.temperature)==md.mesh.numberofvertices), 93 93 md.thermal.spctemperature=NaN*ones(md.mesh.numberofvertices,1); 94 pos=find(md. nodeonsurface); md.thermal.spctemperature(pos)=md.initialization.temperature(pos); %impose observed temperature on surface94 pos=find(md.mesh.vertexonsurface); md.thermal.spctemperature(pos)=md.initialization.temperature(pos); %impose observed temperature on surface 95 95 if (length(md.basalforcings.geothermalflux)~=md.mesh.numberofvertices), 96 96 md.basalforcings.geothermalflux=zeros(md.mesh.numberofvertices,1); -
issm/trunk/src/m/utils/BC/SetMarineIceSheetBC.m
r9725 r9729 103 103 if (length(md.initialization.temperature)==md.mesh.numberofvertices), 104 104 md.thermal.spctemperature=NaN*ones(md.mesh.numberofvertices,1); 105 pos=find(md. nodeonsurface); md.thermal.spctemperature(pos)=md.initialization.temperature(pos); %impose observed temperature on surface105 pos=find(md.mesh.vertexonsurface); md.thermal.spctemperature(pos)=md.initialization.temperature(pos); %impose observed temperature on surface 106 106 if (length(md.basalforcings.geothermalflux)~=md.mesh.numberofvertices), 107 107 md.basalforcings.geothermalflux=zeros(md.mesh.numberofvertices,1); -
issm/trunk/src/m/utils/Mesh/NodeInElement.m
r2110 r9729 2 2 %NODEINELEMENT: find for a list of nodes (in newx,newy), which elements in the mesh (elements,x,y) they belong to. 3 3 % 4 % Usage: node_in_element=NodeInElement(newx,newy,elements,x,y,md. nodeconnectivity);4 % Usage: node_in_element=NodeInElement(newx,newy,elements,x,y,md.mesh.vertexconnectivity); 5 5 % 6 6 % See also Nodeconnectivity -
issm/trunk/src/m/utils/Mesh/ProfileProjectOntoMesh.m
r9728 r9729 48 48 49 49 %now, for each node, figure out which element it belongs to. 50 node_in_element=NodeInElement(newx,newy,md.elements,md.x,md.y,md.mesh. nodeconnectivity);50 node_in_element=NodeInElement(newx,newy,md.elements,md.x,md.y,md.mesh.vertexconnectivity); 51 51 52 52 % eliminate nodes that don't fall in any element -
issm/trunk/src/m/utils/Mesh/argusmesh.m
r9725 r9729 83 83 md.mesh.numberofvertices=size(md.x,1); 84 84 md.mesh.numberofelements=size(md.elements,1); 85 md. nodeonbed=ones(md.mesh.numberofvertices,1);86 md. nodeonsurface=ones(md.mesh.numberofvertices,1);87 md. elementonbed=ones(md.mesh.numberofelements,1);88 md. elementonsurface=ones(md.mesh.numberofelements,1);85 md.mesh.vertexonbed=ones(md.mesh.numberofvertices,1); 86 md.mesh.vertexonsurface=ones(md.mesh.numberofvertices,1); 87 md.mesh.elementonbed=ones(md.mesh.numberofelements,1); 88 md.mesh.elementonsurface=ones(md.mesh.numberofelements,1); 89 89 md.mesh.dimension=2; 90 90 md=addnote(md,notes); -
issm/trunk/src/m/utils/Mesh/squaremesh.m
r9728 r9729 61 61 md.mesh.numberofvertices=nods; 62 62 md.mesh.vertexonboundary=zeros(nods,1);md.mesh.vertexonboundary(segments(:,1:2))=1; 63 md. nodeonbed=ones(nods,1);64 md. nodeonsurface=ones(nods,1);63 md.mesh.vertexonbed=ones(nods,1); 64 md.mesh.vertexonsurface=ones(nods,1); 65 65 66 66 %plug elements … … 68 68 md.mesh.segments=segments; 69 69 md.mesh.numberofelements=nel; 70 md. elementonbed=ones(nel,1);71 md. elementonsurface=ones(nel,1);70 md.mesh.elementonbed=ones(nel,1); 71 md.mesh.elementonsurface=ones(nel,1); 72 72 73 73 %Now, build the connectivity tables for this mesh. 74 md.mesh. nodeconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices);75 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh. nodeconnectivity);74 md.mesh.vertexconnectivity=NodeConnectivity(md.elements,md.mesh.numberofvertices); 75 md.mesh.elementconnectivity=ElementConnectivity(md.elements,md.mesh.vertexconnectivity); 76 76 77 77 %plug other field -
issm/trunk/template
r9728 r9729 11 11 x2d 12 12 y2d 13 14 elementonbed15 elementonsurface16 nodeonbed17 nodeonsurface18 13 }}} 19 14 -
issm/trunk/test/NightlyRun/test1101.m
r9725 r9729 25 25 md.diagnostic.spcvz=NaN*ones(md.mesh.numberofvertices,1); 26 26 27 pos=find(md. nodeonbed);27 pos=find(md.mesh.vertexonbed); 28 28 md.diagnostic.spcvx(pos)=0; 29 29 md.diagnostic.spcvy(pos)=0; -
issm/trunk/test/NightlyRun/test1102.m
r9725 r9729 28 28 29 29 %Create dirichlet on the bed only 30 pos=find(md. nodeonbed);30 pos=find(md.mesh.vertexonbed); 31 31 md.diagnostic.spcvx(pos)=0; 32 32 md.diagnostic.spcvy(pos)=0; … … 36 36 %posx=find(md.x==0); 37 37 %posx2=find(md.x==max(md.x)); 38 %posx=find(md.x==0 & md.y~=0 & md.y~=max(md.y) & ~md. nodeonbed);39 %posx2=find(md.x==max(md.x) & md.y~=0 & md.y~=max(md.y) & ~md. nodeonbed);38 %posx=find(md.x==0 & md.y~=0 & md.y~=max(md.y) & ~md.mesh.vertexonbed); 39 %posx2=find(md.x==max(md.x) & md.y~=0 & md.y~=max(md.y) & ~md.mesh.vertexonbed); 40 40 41 %posy=find(md.y==0 & md.x~=0 & md.x~=max(md.x) & ~md. nodeonbed); %Don't take the same nodes two times42 %posy2=find(md.y==max(md.y) & md.x~=0 & md.x~=max(md.x) & ~md. nodeonbed);41 %posy=find(md.y==0 & md.x~=0 & md.x~=max(md.x) & ~md.mesh.vertexonbed); %Don't take the same nodes two times 42 %posy2=find(md.y==max(md.y) & md.x~=0 & md.x~=max(md.x) & ~md.mesh.vertexonbed); 43 43 44 44 %md.diagnostic.vertex_pairing=[posx,posx2;posy,posy2]; -
issm/trunk/test/NightlyRun/test1103.m
r9725 r9729 22 22 md.diagnostic.spcvy=NaN*ones(md.mesh.numberofvertices,1); 23 23 md.diagnostic.spcvz=NaN*ones(md.mesh.numberofvertices,1); 24 pos=find(md. nodeonbed);24 pos=find(md.mesh.vertexonbed); 25 25 md.diagnostic.spcvx(pos)=0; 26 26 md.diagnostic.spcvy(pos)=0; -
issm/trunk/test/NightlyRun/test1104.m
r9725 r9729 22 22 md.diagnostic.spcvz=NaN*ones(md.mesh.numberofvertices,1); 23 23 24 pos=find(md. nodeonbed);24 pos=find(md.mesh.vertexonbed); 25 25 md.diagnostic.spcvx(pos)=0; 26 26 md.diagnostic.spcvy(pos)=0; -
issm/trunk/test/NightlyRun/test1105.m
r9725 r9729 34 34 35 35 %Add spc on the corners 36 pos=find((md.x==0 | md.x==L) & (md.y==0 | md.y==L) & md. nodeonbed);36 pos=find((md.x==0 | md.x==L) & (md.y==0 | md.y==L) & md.mesh.vertexonbed); 37 37 md.diagnostic.spcvx(pos)=0; 38 38 md.diagnostic.spcvy(pos)=0; … … 58 58 59 59 %Spc the bed at zero for vz 60 pos=find(md. nodeonbed);60 pos=find(md.mesh.vertexonbed); 61 61 md.diagnostic.spcvz(pos)=0; 62 62 -
issm/trunk/test/NightlyRun/test1107.m
r9725 r9729 26 26 27 27 %Create MPCs to have periodic boundary conditions 28 posx=find(md.x==0 & ~(md.y==0 & md. nodeonbed) & ~(md.y==L & md.nodeonbed));29 posx2=find(md.x==max(md.x) & ~(md.y==0 & md. nodeonbed) & ~(md.y==L & md.nodeonbed));28 posx=find(md.x==0 & ~(md.y==0 & md.mesh.vertexonbed) & ~(md.y==L & md.mesh.vertexonbed)); 29 posx2=find(md.x==max(md.x) & ~(md.y==0 & md.mesh.vertexonbed) & ~(md.y==L & md.mesh.vertexonbed)); 30 30 31 31 posy=find(md.y==0 & md.x~=0 & md.x~=max(md.x)); %Don't take the same nodes two times … … 35 35 36 36 %Add spc on the corners 37 pos=find((md.x==0 | md.x==L) & (md.y==0 | md.y==L) & md. nodeonbed);37 pos=find((md.x==0 | md.x==L) & (md.y==0 | md.y==L) & md.mesh.vertexonbed); 38 38 md.diagnostic.spcvy(:)=0; 39 39 md.diagnostic.spcvx(pos)=0; … … 53 53 54 54 %Spc the bed at zero for vz 55 pos=find(md. nodeonbed);55 pos=find(md.mesh.vertexonbed); 56 56 md.diagnostic.spcvz(pos)=0; 57 57 -
issm/trunk/test/NightlyRun/test1109.m
r9725 r9729 31 31 32 32 %Create spcs on the bed 33 pos=find(md. nodeonbed);33 pos=find(md.mesh.vertexonbed); 34 34 md.diagnostic.spcvx=NaN*ones(md.mesh.numberofvertices,1); 35 35 md.diagnostic.spcvy=NaN*ones(md.mesh.numberofvertices,1); -
issm/trunk/test/NightlyRun/test1110.m
r9725 r9729 25 25 if (i==1 | i==3), 26 26 %Create dirichlet on the bed if no slip 27 pos=find(md. nodeonbed);27 pos=find(md.mesh.vertexonbed); 28 28 md.diagnostic.spcvx(pos)=0; 29 29 md.diagnostic.spcvy(pos)=0; 30 30 md.diagnostic.spcvz(pos)=0; 31 31 else 32 pos=find(md. nodeonbed & (md.x==0 | md.x==max(md.x)) & (md.y==0 | md.y==max(md.y)));32 pos=find(md.mesh.vertexonbed & (md.x==0 | md.x==max(md.x)) & (md.y==0 | md.y==max(md.y))); 33 33 md.diagnostic.spcvx(pos)=100; %because we need a dirichlet somewhere 34 34 md.diagnostic.spcvy(pos)=0; 35 35 md.diagnostic.spcvz(pos)=0; 36 36 end 37 pos=find(~md. nodeonbed);37 pos=find(~md.mesh.vertexonbed); 38 38 md.thermal.spctemperature(pos)=255; 39 39 -
issm/trunk/test/NightlyRun/test1205.m
r9725 r9729 22 22 23 23 %Spc the nodes on the bed 24 pos=find(md. nodeonbed);24 pos=find(md.mesh.vertexonbed); 25 25 md.diagnostic.spcvx(pos)=0; 26 26 md.diagnostic.spcvy(pos)=0; -
issm/trunk/test/NightlyRun/test1206.m
r9725 r9729 22 22 23 23 %Spc the nodes on the bed 24 pos=find(md. nodeonbed);24 pos=find(md.mesh.vertexonbed); 25 25 md.diagnostic.spcvx(pos)=0; 26 26 md.diagnostic.spcvy(pos)=0; -
issm/trunk/test/NightlyRun/test1207.m
r9725 r9729 22 22 23 23 %Spc the nodes on the bed 24 pos=find(md. nodeonbed);24 pos=find(md.mesh.vertexonbed); 25 25 md.diagnostic.spcvx(pos)=0; 26 26 md.diagnostic.spcvy(pos)=0; -
issm/trunk/test/NightlyRun/test1208.m
r9703 r9729 13 13 14 14 %Spc the nodes on the bed 15 pos=find(md. nodeonbed);15 pos=find(md.mesh.vertexonbed); 16 16 md.diagnostic.spcvx(pos)=0; 17 17 md.diagnostic.spcvy(pos)=0; -
issm/trunk/test/NightlyRun/test1301.m
r9725 r9729 15 15 md.initialization.pressure=zeros(md.mesh.numberofvertices,1); 16 16 md.initialization.temperature=273.15*ones(md.mesh.numberofvertices,1); 17 pos=find(md. nodeonsurface);17 pos=find(md.mesh.vertexonsurface); 18 18 md.thermal.spctemperature(pos)=md.initialization.temperature(pos); 19 19 md.materials.rheology_B=paterson(md.initialization.temperature); -
issm/trunk/test/NightlyRun/test1302.m
r9725 r9729 12 12 13 13 %Thermal boundary conditions 14 pos1=find(md. elementonbed); md.thermal.spctemperature(md.elements(pos1,1:3))=10;15 pos2=find(md. elementonsurface); md.thermal.spctemperature(md.elements(pos2,4:6))=0;14 pos1=find(md.mesh.elementonbed); md.thermal.spctemperature(md.elements(pos1,1:3))=10; 15 pos2=find(md.mesh.elementonsurface); md.thermal.spctemperature(md.elements(pos2,4:6))=0; 16 16 md.initialization.vz=0.1*ones(md.mesh.numberofvertices,1); 17 17 md.initialization.vel=sqrt( md.initialization.vx.^2+ md.initialization.vy.^2+ md.initialization.vz.^2); -
issm/trunk/test/NightlyRun/test1303.m
r9725 r9729 11 11 md=extrude(md,11,2); 12 12 md=setflowequation(md,'Pattyn','all'); 13 pos1=find(md. elementonbed); md.thermal.spctemperature(md.elements(pos1,1:3))=10;14 pos2=find(md. elementonsurface); md.thermal.spctemperature(md.elements(pos2,4:6))=0;13 pos1=find(md.mesh.elementonbed); md.thermal.spctemperature(md.elements(pos1,1:3))=10; 14 pos2=find(md.mesh.elementonsurface); md.thermal.spctemperature(md.elements(pos2,4:6))=0; 15 15 md.initialization.pressure=zeros(md.mesh.numberofvertices,1); 16 16 -
issm/trunk/test/NightlyRun/test1304.m
r9725 r9729 12 12 md=setflowequation(md,'Pattyn','all'); 13 13 14 pos2=find(md. elementonsurface); md.thermal.spctemperature(md.elements(pos2,4:6))=0;14 pos2=find(md.mesh.elementonsurface); md.thermal.spctemperature(md.elements(pos2,4:6))=0; 15 15 md.initialization.pressure=zeros(md.mesh.numberofvertices,1); 16 16 md.basalforcings.geothermalflux(:)=0.1; %100mW/m^2
Note:
See TracChangeset
for help on using the changeset viewer.