Hi all,
I'm encountering an error that came from a recent install of IBAMR and seems to only affect 2D meshes:
P=00001:Program abort called in file ``/apps/project/pbs0334/ibamr/0.17-openmpi/tmp/unpack/IBAMR-0.17.0/src/IB/IBFEMethod.cpp'' at line 375
P=00001:ERROR MESSAGE:
P=00001:Failed assertion: mesh->mesh_dimension() == mesh->spatial_dimension()
I've run the code with 3D meshes and it seems to work correctly. Looking over my input file and main.C (which worked correctly in a previous install), I can't find the issue. My CMakeLists.txt is adjusted for 2D simulations:
PROJECT(mysolver)
CMAKE_MINIMUM_REQUIRED(VERSION 3.15.0)
# List your source files here - this example has just one.
SET(SOURCE_FILES main.C)
ADD_EXECUTABLE(main2d ${SOURCE_FILES})
FIND_PACKAGE(IBAMR 0.17.0 REQUIRED)
TARGET_LINK_LIBRARIES(main2d IBAMR::IBAMR3d)
# IBAMR saves the flags it used to compile - you can reuse them if you want to
SET(CMAKE_CXX_FLAGS ${IBAMR_CXX_FLAGS})
Any hints at what could be causing this?
Best,
Alex