On Jun 23, 2025, at 2:46 PM, adka...@gmail.com <adka...@gmail.com> wrote:Hi all,After years of using configure, I am trying to swap to using autoibamr, but when compiling my application the makefile generated by cmake is not finding include files:fatal error: IBAMR_config.h: No such file or directory
33 | #include <IBAMR_config.h>What include statements would I add to the CMakeLists.txt file accordingly?
Running cmake passes, it's the make step that fails. Autoibamr installed fine after loading, for whatever reason, the libevent/2.1.12 module and a few other expected path/module settings. The IBFE example files do compile and run. The CMakeLists.txt file based on the example on https://ibamr.github.io/linking follows.
Thank you,Alex
$ cat CMakeLists.txt
PROJECT(mysolver)
CMAKE_MINIMUM_REQUIRED(VERSION 3.15.0)
# List your source files here
SET(SOURCE_FILES main.cpp
CirculationModel_aorta.cpp
boundary_condition_util.cpp
FourierBodyForce.cpp
pnpoly.cpp
FeedbackForcer.cpp)
ADD_EXECUTABLE(main_aorta ${SOURCE_FILES})
FIND_PACKAGE(IBAMR 0.16.0 REQUIRED)
TARGET_LINK_LIBRARIES(main_aorta 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})
--
You received this message because you are subscribed to the Google Groups "IBAMR Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ibamr-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ibamr-users/6688b5cb-ab82-43cb-91b5-aa4f8c862702n%40googlegroups.com.
Silo does appear in autoibamr/configuration, so it appears building it worked fine.#if defined(IBAMR_HAVE_SILO)#include <silo.h>#endif
You received this message because you are subscribed to a topic in the Google Groups "IBAMR Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ibamr-users/aULy5Cja0z8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ibamr-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ibamr-users/BE9528A3-6C67-4920-8FE3-5726D981DE61%40gmail.com.
On Jun 23, 2025, at 3:06 PM, Alex Kaiser <adka...@gmail.com> wrote:Hi Boyce,That worked for that error, thank you. Now it's having trouble finding silo headers (fatal error: silo.h: No such file or directory). What should be done to link with that, some other include to cmake?To include it currently I doSilo does appear in autoibamr/configuration, so it appears building it worked fine.#if defined(IBAMR_HAVE_SILO)#include <silo.h>#endif
To view this discussion visit https://groups.google.com/d/msgid/ibamr-users/CAFvb%3D%2B5UfeH0fiBN0BF%3D5KX%3DwUveNdCCzLzvfeT1ppW3xXQn%2BQ%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/ibamr-users/B3F29596-838A-41DE-9AEB-B3A7496A76CF%40gmail.com.
On Jun 23, 2025, at 3:30 PM, Alex Kaiser <adka...@gmail.com> wrote:I do not think so, just enabling silo output for the fiber-based Lagrangian structures. I have code like this that was propagated from some example file, but think those are not direct silo calls, though could be mistaken.Pointer<LSiloDataWriter> silo_data_writer = app_initializer->getLSiloDataWriter();
if (uses_visit)
{
ib_initializer->registerLSiloDataWriter(silo_data_writer);
ib_method_ops->registerLSiloDataWriter(silo_data_writer);
time_integrator->registerVisItDataWriter(visit_data_writer);
}
To view this discussion visit https://groups.google.com/d/msgid/ibamr-users/CAFvb%3D%2B5oyzL3ghOc7MnfargTMWP3RcrY9To4W-EAfgegMRCCEw%40mail.gmail.com.
You don't often get email from adka...@gmail.com.
Learn why this is important
|