UK-MAC / CleverLeaf_ref

CleverLeaf reference version - AMR mini-app/mini-driver using the SAMRAI library
http://uk-mac.github.io/CleverLeaf/
GNU Lesser General Public License v3.0
11 stars 4 forks source link

SAMRAI linking error on develop branch #2

Closed benjaminjeliot closed 7 years ago

benjaminjeliot commented 7 years ago

I encountered an error on the linking step when building the Cleverleaf develop branch.

In function 'SAMRAI::mesh::GriddingAlgorithm::regridFinerLevel_createAndInstallNewLevel(int, double, boost::shared_ptr&, boost::shared_ptr, boost::shared_ptr)': GriddingAlgorithm.C:(.text+0x905f): undefined reference to 'SAMRAI::xfer::PatchLevelInteriorFillPattern::PatchLevelInteriorFillPattern()'

It would successfully link if I reordered the SAMRAI libraries in src/CMakeLists.txt so that SAMRAI_XFER_LIBRARIES follows SAMRAI_MESH_LIBRARIES, i.e.

  ${SAMRAI_ALGS_LIBRARIES}
  ${SAMRAI_APPU_LIBRARIES}
  ${SAMRAI_MATH_LIBRARIES}
  ${SAMRAI_MESH_LIBRARIES}
  ${SAMRAI_XFER_LIBRARIES}
  ${SAMRAI_GEOM_LIBRARIES}
  ${SAMRAI_PDAT_LIBRARIES}
  ${SAMRAI_SOLV_LIBRARIES}
  ${SAMRAI_HIER_LIBRARIES}
  ${SAMRAI_TBOX_LIBRARIES}
davidbeckingsale commented 7 years ago

Hey @benjaminjeliot, I've run into that before too - I will get this fixed.

davidbeckingsale commented 7 years ago

Closed by #3