|
[Sponsors] |
September 5, 2016, 00:46 |
max value in parallel processing
|
#1 |
Member
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10 |
Hi All,
I am running an application and the mesh was decompose for 16 processors. I submitted my job for parallel processing, but I am not receiving correct max value. I am using the following code where X and XE are defined as volScalarField and calculated before entering the given code: Code:
const volVectorField& pF = mesh.C(); for (int i=0; i<pF.size(); i++) { if (abs(X[i]-XE[i])>maxDiff) { maxDiff = fabs(X[i]-XE[i]); tempi=i; } } Info<< "Diff= " << maxDiff << " @ i = "<<tempi<<nl<<endl; Thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cavitation around NACA hydrofoil using interPhaseChangeFoam | Kozan | OpenFOAM Running, Solving & CFD | 28 | March 11, 2023 23:30 |
Problem with chtMultiregionFoam radiation boundary condition | baran_foam | OpenFOAM Running, Solving & CFD | 10 | December 17, 2019 17:36 |
Parallel processing of OpenFOAM cases on multicore processor??? | g.akbari | OpenFOAM Running, Solving & CFD | 31 | November 1, 2017 09:25 |
Explicitly filtered LES | saeedi | Main CFD Forum | 16 | October 14, 2015 11:58 |