/[escript]/branches/doubleplusgood/dudley/src/Mesh.cpp
ViewVC logotype

Diff of /branches/doubleplusgood/dudley/src/Mesh.cpp

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

revision 3152 by jfenwick, Fri Sep 3 05:48:31 2010 UTC revision 3163 by jfenwick, Tue Sep 7 05:30:39 2010 UTC
# Line 140  void Mesh_setOrders(Dudley_Mesh *in) Line 140  void Mesh_setOrders(Dudley_Mesh *in)
140     const dim_t order_max=9999999;     const dim_t order_max=9999999;
141     dim_t locals[3];     dim_t locals[3];
142     #ifdef PASO_MPI     #ifdef PASO_MPI
143         dim_t globals[4];         dim_t globals[3];
144     #endif     #endif
145     locals[0]=order_max; locals[1]=order_max; locals[2]=order_max;     locals[0]=order_max; locals[1]=order_max; locals[2]=order_max;
146    
# Line 162  void Mesh_setOrders(Dudley_Mesh *in) Line 162  void Mesh_setOrders(Dudley_Mesh *in)
162    }    }
163    
164     #ifdef PASO_MPI     #ifdef PASO_MPI
165         MPI_Allreduce( locals, globals, 4, MPI_INT, MPI_MIN, in->MPIInfo->comm );         MPI_Allreduce( locals, globals, 3, MPI_INT, MPI_MIN, in->MPIInfo->comm );
166         in->approximationOrder=(globals[0] < order_max ? globals[0] : -1 );         in->approximationOrder=(globals[0] < order_max ? globals[0] : -1 );
167         in->reducedApproximationOrder=(globals[1] < order_max ? globals[1] : -1 );         in->reducedApproximationOrder=in->approximationOrder;
168         in->integrationOrder=(globals[2] < order_max ? globals[2] : -1 );         in->integrationOrder=(globals[1] < order_max ? globals[1] : -1 );
169         in->reducedIntegrationOrder=(globals[3] < order_max ? globals[3] : -1 );         in->reducedIntegrationOrder=(globals[2] < order_max ? globals[2] : -1 );
170     #else     #else
171         in->approximationOrder=(locals[0] < order_max ? locals[0] : -1 );         in->approximationOrder=(locals[0] < order_max ? locals[0] : -1 );
172         in->reducedApproximationOrder=(locals[0] < order_max ? locals[0] : -1 );         in->reducedApproximationOrder=(locals[0] < order_max ? locals[0] : -1 );

Legend:
Removed from v.3152  
changed lines
  Added in v.3163

  ViewVC Help
Powered by ViewVC 1.1.26