Changeset 3476
- Timestamp:
- 04/08/10 15:16:08 (15 years ago)
- Location:
- issm/trunk/src/c
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/DataSet/DataSet.cpp
r3475 r3476 965 965 966 966 /*Check that dofcount is positive*/ 967 ISSMASSERT(dofcount>0);967 if (Size()) ISSMASSERT(dofcount>0); 968 968 969 969 /*Ok, now every object has distributed dofs, but locally, and with a dof count starting from -
issm/trunk/src/c/Dofx/Dofx.cpp
r3464 r3476 27 27 DofVec* partition=NULL; 28 28 DofVec* tpartition=NULL; 29 30 /*Check that vertices and nodes are not empty*/ 31 ISSMASSERT(nodes && vertices); 29 32 30 33 /*Initialize dofvecs: */ -
issm/trunk/src/c/ModelProcessorx/Balancedthickness/CreateElementsNodesAndMaterialsBalancedthickness.cpp
r3434 r3476 12 12 #include "../IoModel.h" 13 13 14 15 14 void CreateElementsNodesAndMaterialsBalancedthickness(DataSet** pelements,DataSet** pnodes, DataSet** pvertices, DataSet** pmaterials, IoModel* iomodel,ConstDataHandle iomodel_handle){ 16 17 15 18 16 /*Intermediary*/ -
issm/trunk/src/c/ModelProcessorx/DiagnosticHoriz/CreateElementsNodesAndMaterialsDiagnosticHoriz.cpp
r3439 r3476 22 22 DataSet* vertices = NULL; 23 23 DataSet* materials = NULL; 24 25 /*Now, is the flag macayaealpattyn on? otherwise, do nothing: */26 if (!iomodel->ismacayealpattyn)goto cleanup_and_return;27 24 28 25 /*First create the elements, nodes and material properties: */ … … 31 28 vertices = new DataSet(VerticesEnum()); 32 29 materials = new DataSet(MaterialsEnum()); 30 31 /*Now, is the flag macayaealpattyn on? otherwise, do nothing: */ 32 if (!iomodel->ismacayealpattyn)goto cleanup_and_return; 33 33 34 34 /*Partition elements and vertices and nodes: */ -
issm/trunk/src/c/ModelProcessorx/DiagnosticHutter/CreateElementsNodesAndMaterialsDiagnosticHutter.cpp
r3439 r3476 22 22 DataSet* vertices = NULL; 23 23 DataSet* materials = NULL; 24 25 /*First create the elements, nodes and material properties: */ 26 elements = new DataSet(ElementsEnum()); 27 nodes = new DataSet(NodesEnum()); 28 vertices = new DataSet(VerticesEnum()); 29 materials = new DataSet(MaterialsEnum()); 24 30 25 31 /*Now, is the flag ishutter on? otherwise, do nothing: */ -
issm/trunk/src/c/ModelProcessorx/DiagnosticStokes/CreateElementsNodesAndMaterialsDiagnosticStokes.cpp
r3422 r3476 23 23 DataSet* vertices = NULL; 24 24 DataSet* materials = NULL; 25 26 /*Objects: */27 Node* node = NULL;28 Vertex* vertex = NULL;29 Penta* penta = NULL;30 Matice* matice = NULL;31 Matpar* matpar = NULL;32 33 /*Now, do we have Stokes elements?*/34 if (strcmp(iomodel->meshtype,"2d")==0) ISSMERROR("Stokes elements only supported in 3d!");35 if (!iomodel->isstokes)goto cleanup_and_return;36 25 37 26 /*First create the elements, nodes and material properties: */ … … 40 29 vertices = new DataSet(VerticesEnum()); 41 30 materials = new DataSet(MaterialsEnum()); 31 32 /*Now, do we have Stokes elements?*/ 33 if (strcmp(iomodel->meshtype,"2d")==0) goto cleanup_and_return; 34 if (!iomodel->isstokes) goto cleanup_and_return; 35 42 36 43 37 /*Partition elements and vertices and nodes: */ -
issm/trunk/src/c/ModelProcessorx/DiagnosticVert/CreateElementsNodesAndMaterialsDiagnosticVert.cpp
r3423 r3476 23 23 DataSet* materials = NULL; 24 24 25 /*Now, is the flag macayaealpattyn on? otherwise, do nothing: */26 if (strcmp(iomodel->meshtype,"2d")==0)goto cleanup_and_return;27 28 25 /*First create the elements, nodes and material properties: */ 29 26 elements = new DataSet(ElementsEnum()); … … 31 28 vertices = new DataSet(VerticesEnum()); 32 29 materials = new DataSet(MaterialsEnum()); 30 31 /*Now, is the flag macayaealpattyn on? otherwise, do nothing: */ 32 if (strcmp(iomodel->meshtype,"2d")==0)goto cleanup_and_return; 33 33 34 34 /*Partition elements and vertices and nodes: */ -
issm/trunk/src/c/ModelProcessorx/Melting/CreateElementsNodesAndMaterialsMelting.cpp
r3426 r3476 14 14 void CreateElementsNodesAndMaterialsMelting(DataSet** pelements,DataSet** pnodes, DataSet** pvertices,DataSet** pmaterials, IoModel* iomodel,ConstDataHandle iomodel_handle){ 15 15 16 /* output: int* epart, int* my_grids, double* my_bordergrids*/16 /*Intermediary*/ 17 17 int i,j,k,n; 18 18 -
issm/trunk/src/c/ModelProcessorx/Thermal/CreateElementsNodesAndMaterialsThermal.cpp
r3428 r3476 14 14 void CreateElementsNodesAndMaterialsThermal(DataSet** pelements,DataSet** pnodes, DataSet** pvertices,DataSet** pmaterials, IoModel* iomodel,ConstDataHandle iomodel_handle){ 15 15 16 /* output: int* epart, int* my_grids, double* my_bordergrids*/16 /*Intermediary*/ 17 17 int i,j,k,n; 18 18
Note:
See TracChangeset
for help on using the changeset viewer.