|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Wael Itani
Join Date: Mar 2021
Posts: 2
Rep Power: 0 ![]() |
I have a custom boundary condition which computes the gradient of the velocity field to compute its value. It works fine in serial run. However, it fails in parallel.
uName = this->internalField().name(); const volVectorField& U = db().lookupObject<volVectorField>(uName); volTensorField gradU = fvc::grad(U); When the last line is commented it runs fine. Otherwise, it gives the below error. U.size() shows the correct number of cells for the processor. [0] From const T& Foam::UPtrList<T>: ![]() [0] in file /home/user/openfoam/BuildEnv/debian-build/focal-2012.latest/scratch/src/OpenFOAM/lnInclude/UPtrListI.H at line 218. [0] FOAM parallel run aborting [0] [0] #0 Foam::error: ![]() [1] [1] --> FOAM FATAL ERROR: (openfoam-2012) [1] Cannot dereference nullptr at index 0 in range [0,12) [1] [1] [1] From const T& Foam::UPtrList<T>: ![]() [1] in file /home/user/openfoam/BuildEnv/debian-build/focal-2012.latest/scratch/src/OpenFOAM/lnInclude/UPtrListI.H at line 218. [1] FOAM parallel run aborting [1] [1] #0 Foam::error: ![]() [LAPTOP-U0DBOLPO:28182] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages ./runThis.sh: line 5: recomposePar: command not found |
|
![]() |
![]() |
![]() |
Tags |
boundary, bug, grad, programming |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ANSYS Meshing] Parallel meshing utilisation failing | crc1622 | ANSYS Meshing & Geometry | 0 | February 14, 2019 03:42 |
Error running openfoam in parallel | fede32 | OpenFOAM Programming & Development | 5 | October 4, 2018 17:38 |
Explicitly filtered LES | saeedi | Main CFD Forum | 16 | October 14, 2015 12:58 |
simpleFoam parallel | AndrewMortimer | OpenFOAM Running, Solving & CFD | 12 | August 7, 2015 19:45 |
[mesh manipulation] multiple calls to refineMesh parallel w/ dict failing | Regis_ | OpenFOAM Meshing & Mesh Conversion | 2 | June 4, 2015 14:44 |