mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
fix rank/ntasks in curvedelems
This commit is contained in:
parent
568f918ae8
commit
16421b4be3
@ -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
|
||||
@ -567,6 +565,8 @@ namespace netgen
|
||||
int rank = 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