You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Complex ADflow will not run properly when a real instance exists at the same time.
Steps to reproduce issue
Here is a MWE:
from baseclasses import AeroProblem
from adflow import ADFLOW, ADFLOW_C
aeroOptions = {
"gridfile": "../../input_files/naca0012_rans-L2.cgns",
"MGCycle": "sg",
}
ap = AeroProblem(
name="mdo_tutorial",
alpha=1.8,
mach=0.80,
P=20000.0,
T=220.0,
areaRef=45.5,
chordRef=3.25,
beta=0.0,
R=287.87,
xRef=0.0,
yRef=0.0,
zRef=0.0,
)
# Create solvers
CFDSolver_real = ADFLOW(options=aeroOptions)
CFDSolver_complex = ADFLOW_C(options=aeroOptions)
# Try to use run the complex solver
CFDSolver_complex(ap)
Current behavior
Running the example above will result in errors like the following:
[0]PETSC ERROR: PetscTrFreeDefault() called from VecDestroy_MPI() line 21 in packages/petsc-3.15.1/src/vec/vec/impls/mpi/pdvec.c
[0]PETSC ERROR: Block [id=1190(92160)] at address 0x5636dfd7cf30 is corrupted (probably write past end of array)
[0]PETSC ERROR: Block allocated in VecCreate_MPI_Private() line 515 in packages/petsc-3.15.1/src/vec/vec/impls/mpi/pbvec.c
[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
[0]PETSC ERROR: Memory corruption: https://www.mcs.anl.gov/petsc/documentation/installation.html#valgrind
[0]PETSC ERROR: Corrupted memory
[0]PETSC ERROR: See https://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
[0]PETSC ERROR: Petsc Release Version 3.15.1, Jun 17, 2021
Expected behavior
The solver should run properly.
The text was updated successfully, but these errors were encountered:
Description
Complex ADflow will not run properly when a real instance exists at the same time.
Steps to reproduce issue
Here is a MWE:
Current behavior
Running the example above will result in errors like the following:
Expected behavior
The solver should run properly.
The text was updated successfully, but these errors were encountered: