/[escript]/trunk/finley/src/Mesh_hex8.cpp
ViewVC logotype

Diff of /trunk/finley/src/Mesh_hex8.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4491 by caltinay, Fri May 31 07:09:03 2013 UTC revision 4492 by caltinay, Tue Jul 2 01:44:11 2013 UTC
# Line 40  Finley_Mesh* Finley_RectangularMesh_Hex8 Line 40  Finley_Mesh* Finley_RectangularMesh_Hex8
40    dim_t N0,N1,N2,NE0,NE1,NE2,i0,i1,i2,k,Nstride0=0, Nstride1=0,Nstride2=0, local_NE0, local_NE1, local_NE2, local_N0=0, local_N1=0, local_N2=0;    dim_t N0,N1,N2,NE0,NE1,NE2,i0,i1,i2,k,Nstride0=0, Nstride1=0,Nstride2=0, local_NE0, local_NE1, local_NE2, local_N0=0, local_N1=0, local_N2=0;
41    dim_t totalNECount,faceNECount,NDOF0=0,NDOF1=0,NDOF2=0,NFaceElements=0, NN;    dim_t totalNECount,faceNECount,NDOF0=0,NDOF1=0,NDOF2=0,NFaceElements=0, NN;
42    index_t node0, myRank, e_offset2, e_offset1, e_offset0=0, offset1=0, offset2=0, offset0=0, global_i0, global_i1, global_i2;    index_t node0, myRank, e_offset2, e_offset1, e_offset0=0, offset1=0, offset2=0, offset0=0, global_i0, global_i1, global_i2;
43    Finley_ReferenceElementSet *refPoints=NULL, *refContactElements=NULL, *refFaceElements=NULL, *refElements=NULL;    ReferenceElementSet *refPoints=NULL, *refContactElements=NULL, *refFaceElements=NULL, *refElements=NULL;
44    Finley_Mesh* out;    Finley_Mesh* out;
45    Esys_MPIInfo *mpi_info = NULL;    Esys_MPIInfo *mpi_info = NULL;
46    char name[50];    char name[50];
# Line 71  Finley_Mesh* Finley_RectangularMesh_Hex8 Line 71  Finley_Mesh* Finley_RectangularMesh_Hex8
71        Esys_MPIInfo_free( mpi_info );        Esys_MPIInfo_free( mpi_info );
72        return NULL;        return NULL;
73    }    }
74    refElements= Finley_ReferenceElementSet_alloc(Finley_Hex8,order,reduced_order);    refElements= ReferenceElementSet_alloc(Hex8,order,reduced_order);
75    if (useElementsOnFace) {    if (useElementsOnFace) {
76          refFaceElements=Finley_ReferenceElementSet_alloc(Finley_Hex8Face, order, reduced_order);          refFaceElements=ReferenceElementSet_alloc(Hex8Face, order, reduced_order);
77          refContactElements=Finley_ReferenceElementSet_alloc(Finley_Hex8Face_Contact, order, reduced_order);          refContactElements=ReferenceElementSet_alloc(Hex8Face_Contact, order, reduced_order);
78    } else {    } else {
79          refFaceElements=Finley_ReferenceElementSet_alloc(Finley_Rec4, order, reduced_order);          refFaceElements=ReferenceElementSet_alloc(Rec4, order, reduced_order);
80          refContactElements=Finley_ReferenceElementSet_alloc(Finley_Rec4_Contact, order, reduced_order);          refContactElements=ReferenceElementSet_alloc(Rec4_Contact, order, reduced_order);
81    }    }
82    refPoints=Finley_ReferenceElementSet_alloc(Finley_Point1, order, reduced_order);    refPoints=ReferenceElementSet_alloc(Point1, order, reduced_order);
83        
84    
85    if ( Finley_noError()) {    if ( Finley_noError()) {
# Line 439  Finley_Mesh* Finley_RectangularMesh_Hex8 Line 439  Finley_Mesh* Finley_RectangularMesh_Hex8
439        Finley_Mesh_free(out);        Finley_Mesh_free(out);
440    }    }
441      /* free up memory */      /* free up memory */
442    Finley_ReferenceElementSet_dealloc(refPoints);    ReferenceElementSet_dealloc(refPoints);
443    Finley_ReferenceElementSet_dealloc(refContactElements);    ReferenceElementSet_dealloc(refContactElements);
444    Finley_ReferenceElementSet_dealloc(refFaceElements);    ReferenceElementSet_dealloc(refFaceElements);
445    Finley_ReferenceElementSet_dealloc(refElements);    ReferenceElementSet_dealloc(refElements);
446    Esys_MPIInfo_free( mpi_info );      Esys_MPIInfo_free( mpi_info );  
447    
448    return out;    return out;

Legend:
Removed from v.4491  
changed lines
  Added in v.4492

  ViewVC Help
Powered by ViewVC 1.1.26