From 728fc15679d11a0b7b22959ba1cc6344fed7443a Mon Sep 17 00:00:00 2001 From: nadir Date: Tue, 31 Jan 2006 14:46:37 +0000 Subject: [PATCH] committing the version in the main trunk of the CVS tree the branch IntegrationEDF tagged ForV3_2_0bx. That is for the V3_2_0a1 of the MED module. --- doc/MEDMEM/FIELDgeneral.cxx | 2 +- doc/MEDMEM/MEDMEM_UsersGuide.tex.in | 27 ++++++++++++++++++- doc/MEDMEM/MESHconnectivities.cxx | 42 +++++++++++++++++++++++++++++ doc/MEDMEM/MESHconnectivities.py | 36 +++++++++++++++++++++++++ 4 files changed, 105 insertions(+), 2 deletions(-) diff --git a/doc/MEDMEM/FIELDgeneral.cxx b/doc/MEDMEM/FIELDgeneral.cxx index 1d37145ac..82771051a 100644 --- a/doc/MEDMEM/FIELDgeneral.cxx +++ b/doc/MEDMEM/FIELDgeneral.cxx @@ -67,7 +67,7 @@ int main (int argc, char ** argv) { // How many Value : int NumberOfValue = mySupport->getNumberOfElements(MED_ALL_ELEMENTS); // Value - const double * Value = myField.getValue(MED_FULL_INTERLACE); + const double * Value = myField.getValue(); for(int i=0; i 0 ) + { + cout << "Show Connectivity (Nodal) of POLYGONS:" << endl ; + const int* Connectivity = myMesh.getPolygonsConnectivity(MED_NODAL,MED_CELL); + const int* ConnectivityIndex = myMesh.getPolygonsConnectivityIndex(MED_NODAL,MED_CELL); + for (int j=0; j 0 ) + { + cout << "Show Connectivity (Nodal) of POLYHEDRONS:" << endl ; + const int* Connectivity = myMesh.getPolyhedronConnectivity(MED_NODAL); + const int* FaceIndex = myMesh.getPolyhedronFacesIndex(); + const int* Index = myMesh.getPolyhedronIndex(MED_NODAL); + for (int j=0; j 0 : + print "" + print " Show Connectivity (Nodal) of POLYGONS:" + print "" + connectivity = myMesh.getPolygonsConnectivity(MED_NODAL,MED_CELL) + index = myMesh.getPolygonsConnectivityIndex(MED_NODAL,MED_CELL) + for j in range(nbPolygons): + print " Polygon",(j+1)," ",connectivity[ index[j]-1 : index[j+1]-1 ] + pass + pass + +nbPolyhedrons = myMesh.getNumberOfPolyhedron() +if nbPolyhedrons > 0 : + print "" + print " Show Connectivity (Nodal) of POLYHEDRONS:" + print "" + connectivity = myMesh.getPolyhedronConnectivity(MED_NODAL) + fIndex = myMesh.getPolyhedronFacesIndex() + index = myMesh.getPolyhedronIndex(MED_NODAL) + for j in range(nbPolyhedrons): + print " Polyhedra",(j+1) + iF1, iF2 = index[ j ]-1, index[ j+1 ]-1 + for f in range( iF2 - iF1 ): + iN1, iN2 = fIndex[ iF1+f ]-1, fIndex[ iF1+f+1 ]-1 + print " Face",f+1," ",connectivity[ iN1 : iN2 ] + pass + pass + pass -- 2.39.2