NJOY2016
NJOY2016 copied to clipboard
installation
During compiling i am facing problem like Can't open module file 'aceth.mod' for reading at (1): No such file
to resolve this type of problem , i should i do?
What compiler are you using? I've run into this same error before with certain compilers when changing the CMAKE_Fortran_MODULE_DIRECTORY. You might want to try making the following changes in CMakeLists.txt and starting a new build:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f8438af..91bb6c5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,7 +45,6 @@ if ( profile_generate )
file( MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/profiling" )
endif()
-set( CMAKE_Fortran_MODULE_DIRECTORY "${CMAKE_BINARY_DIR}/fortran_modules" CACHE PATH "directory for fortran modules" )
file( MAKE_DIRECTORY "${CMAKE_Fortran_MODULE_DIRECTORY}" )
set( njoy_GNU_Linux_common_flags "-Wall" "-Wextra" )
@@ -233,14 +232,3 @@ install( TARGETS ${installation_targets}
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ
WORLD_EXECUTE WORLD_READ )
-
-file( RELATIVE_PATH relative_fortran_module_files_path
- "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_Fortran_MODULE_DIRECTORY}" )
-file( GLOB fortran_module_files
- RELATIVE "${relative_fortran_module_files_path}"
- *.mod )
-install( FILES ${fortran_module_files}
- DESTINATION include
- PERMISSIONS OWNER_READ OWNER_WRITE
- GROUP_READ
- WORLD_READ )
i am using gfortran.
Did you follow the instructions on the Getting NJOY page? Please be more explicit in what you have done.