Looping in parallel in template class chemistryModel
Hello all,
I have been updating some old OpenFOAM code (originally in v2, now in v10/11) based on the chemistryModel library where I do a calculation over all cells. I have added the virtual function to basicChemistryModel and the implementation in chemistryModel/chemistryModel.C. I am trying to just do a loop over all cells with a forAll loop, but I only get the first processor to work. I can't post the full code so I need to create a stub case, but basically (assuming a private member A_ that is a volScalarField that is registered and read in): Code:
template<class ThermoType> Any assistance would be welcome. |
Quote:
If you replace the "Info" statement with "Pout" you will print the values on each rank, which will presumably contradict your conclusion. |
Quote:
Code:
tmp<volScalarField> trho(this->thermo().rho(); |
All times are GMT -4. The time now is 16:28. |