Update CMake build - #97
Conversation
| use math | ||
| use field | ||
| use mesh_mod | ||
| use scorec_mesh_mod |
There was a problem hiding this comment.
mesh_mod is supposed to be switchable on the build setup through a fortran interface.
|
I encountered the following issues, which required some source code changes to get the build to pass. They're not included in the PR because they don't appear in all configs/environments.
The value https://github.com/PrincetonUniversity/M3DC1/blob/master/unstructured/basic_mesh.f90#L369
Some executables are missing, even in the original CMake setup. I'm not sure whether this means we no longer use those executables, or whether they're simply not being built due to some error. Related code are: #find_package(PSPLINE)
#add_executable(readgato polar.f90 readgato.f90)
#target_link_libraries(readgato ${PSPLINE_LIBRARIES})
#add_executable(read_jsolver polar.f90 read_jsolver_exec.f90)
#target_link_libraries(read_jsolver ${PSPLINE_LIBRARIES})
#add_executable(a2cc readaeqdsk.f90 a2cc.f90)
#target_link_libraries(a2cc )
#target_compile_definitions(a2cc PUBLIC ${DEFS})
#add_executable(kprad kprad.f90 kprad_test.f90)
CALL MPI_Win_allocate_shared(arraysize, disp_unit, MPI_INFO_NULL, hostcomm, baseptr, win_mesh_nodes, ierr)and CALL C_F_POINTER(baseptr, mesh_nodes, [nodes_per_element, nelms_global])This only occurs in certain environments (SCOREC and Perlmutter default). A pure Spack environment with Affected files:
|
This PR updates the CMake build for M3DC1. Most of the work was done by @jacobmerson , with a few additional details added by me. I've only run the kprad_2d test so far — not every executable has been tested yet, but this should serve as a good starting point.
TODO: