/[escript]/branches/trilinos_from_5897/dudley/src/Mesh_tri3.cpp
ViewVC logotype

Diff of /branches/trilinos_from_5897/dudley/src/Mesh_tri3.cpp

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

revision 5962 by caltinay, Fri Feb 5 03:37:49 2016 UTC revision 5963 by caltinay, Mon Feb 22 06:59:27 2016 UTC
# Line 149  Dudley_Mesh *Dudley_TriangularMesh_Tri3( Line 149  Dudley_Mesh *Dudley_TriangularMesh_Tri3(
149          dim_t k = i0 + local_N0 * i1;          dim_t k = i0 + local_N0 * i1;
150          dim_t global_i0 = i0 + offset0;          dim_t global_i0 = i0 + offset0;
151          dim_t global_i1 = i1 + offset1;          dim_t global_i1 = i1 + offset1;
152          out->Nodes->Coordinates[INDEX2(0, k, DIM)] = DBLE(global_i0) / DBLE(N0 - 1) * Length[0];          out->Nodes->Coordinates[INDEX2(0, k, DIM)] = (double)global_i0 / (double)(N0 - 1) * Length[0];
153          out->Nodes->Coordinates[INDEX2(1, k, DIM)] = DBLE(global_i1) / DBLE(N1 - 1) * Length[1];          out->Nodes->Coordinates[INDEX2(1, k, DIM)] = (double)global_i1 / (double)(N1 - 1) * Length[1];
154          out->Nodes->Id[k] = Nstride0 * global_i0 + Nstride1 * global_i1;          out->Nodes->Id[k] = Nstride0 * global_i0 + Nstride1 * global_i1;
155          out->Nodes->Tag[k] = 0;          out->Nodes->Tag[k] = 0;
156          out->Nodes->globalDegreesOfFreedom[k] = Nstride0 * (global_i0 % NDOF0) + Nstride1 * (global_i1 % NDOF1);          out->Nodes->globalDegreesOfFreedom[k] = Nstride0 * (global_i0 % NDOF0) + Nstride1 * (global_i1 % NDOF1);

Legend:
Removed from v.5962  
changed lines
  Added in v.5963

  ViewVC Help
Powered by ViewVC 1.1.26