foamCalc not reading arguments when executed through runParallel
When I try to exectute foamCalc through runParallel, I get following errors (command runParallel foamCalc mag U): [ram@pc-ram xyz]$ more log.foamCalc
--> FOAM FATAL ERROR: Unknown calcType type -parallel Valid calcType selections are:
8 ( addSubtract components div interpolate mag magGrad magSqr randomise )
From function static Foam::autoPtr<Foam::calcType> Foam::calcType::New(const Foam::word&)
in file calcType/calcTypeNew.C at line 53.
FOAM aborting
Selecting calcType -parallel Selecting calcType -parallel
--> FOAM FATAL ERROR: Unknown calcType type -parallel Valid calcType selections are:
However, running the full command "mpirun -np 2 foamCalc mag U -parallel" runs without issues.