mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
Merge branch 'fix_curve_mpi' into 'master'
fix rank/ntasks in curvedelems See merge request jschoeberl/netgen!140
This commit is contained in:
commit
10ef58b54b
@ -547,12 +547,10 @@ namespace netgen
|
||||
void CurvedElements :: BuildCurvedElements(const Refinement * ref, int aorder,
|
||||
bool arational)
|
||||
{
|
||||
bool working = (ntasks == 1) || (id > 0);
|
||||
|
||||
ishighorder = 0;
|
||||
order = 1;
|
||||
|
||||
|
||||
// MPI_Comm curve_comm;
|
||||
const auto & curve_comm = mesh.GetCommunicator();
|
||||
#ifdef PARALLEL
|
||||
@ -564,9 +562,11 @@ namespace netgen
|
||||
#else
|
||||
// curve_comm = mesh.GetCommunicator();
|
||||
#endif
|
||||
int rank = curve_comm.Rank();
|
||||
int id = curve_comm.Rank();
|
||||
int ntasks = curve_comm.Size();
|
||||
|
||||
bool working = (ntasks == 1) || (id > 0);
|
||||
|
||||
if (working)
|
||||
order = aorder;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user