move reusable fortran modules to keep data to a separate file

This commit is contained in:
Axel Kohlmeyer
2022-09-27 14:01:01 -04:00
parent 256f385be4
commit 7fe9d087db
9 changed files with 71 additions and 124 deletions

View File

@ -30,7 +30,7 @@ if(CMAKE_Fortran_COMPILER)
add_library(MPI::MPI_Fortran ALIAS fmpi_stubs)
endif()
add_library(flammps STATIC ${LAMMPS_FORTRAN_MODULE})
add_library(flammps STATIC ${LAMMPS_FORTRAN_MODULE} keepstuff.f90)
add_executable(test_fortran_create wrap_create.cpp test_fortran_create.f90)
target_link_libraries(test_fortran_create PRIVATE flammps lammps MPI::MPI_Fortran GTest::GTestMain)