Hi all,I am considering generating the inlet waves using the focused wave method. So I want to build another new class "SuperposeWaveGenerator", instead of using the current class "IrregularWaveGenerator".Thus, I build copies of all files related "IrregularWaveGenerator" and replace the "Irregular" keywords with "Superpose" in all files. Here is what I have tried.// ---------------------------------------------------------------------------------------------------------------------------------1. Build SuperposeWaveBcCoef.cpp and SuperposeWaveGenerator.cpp under the directory src/wave_generation/, similar to the IrregularWaveBcCoef.cpp and IrregularWaveGenerator.cpp in that directory.
2. Build SuperposeWaveBcCoef.h and SuperposeWaveGenerator.h under the directory include/ibamr/, similar to the IrregularWaveBcCoef.h and IrregularWaveGenerator.h in that directory.
3. Add
../include/ibamr/SuperposeWaveBcCoef.h \
../include/ibamr/SuperposeWaveGenerator.h \
../src/wave_generation/SuperposeWaveBcCoef.cpp \
../src/wave_generation/SuperposeWaveGenerator.cpp \
in lib/Makefile.am4. Add the header file
#include <ibamr/SuperposeWaveBcCoef.h>
#include <ibamr/SuperposeWaveGenerator.h>and some "SuperposeWave" related codesin examples/wave_tank/ex0/example.cpp// ---------------------------------------------------------------------------------------------------------------------------------However, when I try to compile /wave_tank/ex0/example.cpp, it seems that the "SuperposeWave" related codes are not added correctly. The IBAMR can not identify the new added codes and compile them.The errors are:/mnt/d/Linuxfiles/ibamrtest_32waves/example.cpp:340: undefined reference to `IBAMR::SuperposeWaveBcCoef::SuperposeWaveBcCoef(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, SAMRAI::tbox::Pointer<SAMRAI::tbox::Database>, SAMRAI::tbox::Pointer<SAMRAI::geom::CartesianGridGeometry<2> >)'/mnt/d/Linuxfiles/ibamrtest_32waves/example.cpp:402: undefined reference to `IBAMR::SuperposeWaveGenerator::SuperposeWaveGenerator(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, SAMRAI::tbox::Pointer<SAMRAI::tbox::Database>)'/mnt/d/Linuxfiles/ibamrtest_32waves/example.cpp:551: undefined reference to `typeinfo for IBAMR::SuperposeWaveGenerator'/mnt/d/Linuxfiles/ibamrtest_32waves/example.cpp:555: undefined reference to `IBAMR::SuperposeWaveGenerator::printWaveData(std::basic_ofstream<char, std::char_traits<char> >&) const'collect2: error: ld returned 1 exit statusMakefile:32: recipe for target 'main2d' failedmake: *** [main2d] Error 1Any suggestions?--
You received this message because you are subscribed to the Google Groups "IBAMR Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ibamr-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-dev/3d87fe53-e4e6-46b0-a5ba-6016c2263cadn%40googlegroups.com.
On Mar 11, 2021, at 11:19 PM, Amneet Bhalla <mail2...@gmail.com> wrote:@David: do we have instructions on how to add new classes in IBAMR written down somewhere?
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 on the web visit https://groups.google.com/d/msgid/ibamr-users/CAMETWJ2Op8EYrr6LXMBMqbVJ2fbM9%2Bb-x0S9H%3DrLW%2Bg-w9dLUA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-users/B6B35608-26BB-4F20-8746-846034A0A54D%40gmail.com.
Yadong (Jordan) Zeng
Ph.D. Candidate
Department of Mechanical Engineering
University of Minnesota
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-users/CAFZuioAJ-4-440eXC%3DKPpCO25SWAvH_C5AT%2Bn7pxfgCvejhqBg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-dev/CAMETWJ2YQKK95EHeJyfTF9n4aTKMxXcnzLwHjDtSYvaq6Re2-A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-users/DC686BFB-6A56-4D27-A3D9-4E39D1898124%40gmail.com.