Commit febde829 authored by Martin Beseda's avatar Martin Beseda
Browse files

[FIX] Added compiler-dependent preprocessor flag & fixed paths in acsf_fapi Sandbox example.

parent 8c2a30e1
......@@ -11,7 +11,13 @@ MESSAGE(STATUS "Using C compiler: ${CMAKE_C_COMPILER}")
MESSAGE(STATUS "Using CXX compiler: ${CMAKE_CXX_COMPILER}")
MESSAGE(STATUS "Using Fortran compiler: ${CMAKE_Fortran_COMPILER}")
# Fortran compile options
# Preprocessor flag
SET(PREPROCESSOR_FLAG -cpp)
IF(${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel")
SET(PREPROCESSOR_FLAG -fpp)
ENDIF()
# Fortran compile options
SET(CMAKE_Fortran_FLAGS -ffree-line-length-none ${CMAKE_Fortran_FLAGS})
# Looking for MPI
......
......@@ -149,7 +149,7 @@ IF("${BUILD_LIB}" STREQUAL "yes")
lib4neuro
PUBLIC
-fpp
${PREPROCESSOR_FLAG}
)
# GFortran linking
......
......@@ -46,9 +46,7 @@ program acsf_fapi
integer(c_int) :: ret
MPI_INIT_VARIABLES
! PetscErrorCode ierr; PetscMPIInt rank; PetscMPIInt nranks; PetscMPIInt msg; PetscMPIInt msg_;
MPI_INIT_VARIABLES
! Pointers & deferred strings initialization
net_complx_p = c_loc(net_complx)
......@@ -60,8 +58,8 @@ MPI_INIT_VARIABLES
g5_shifts_p = c_loc(g5_shifts)
g5_angles_p = c_loc(g5_angles)
data_file = '/home/martin/lib4neuro/data/HE4+T1.xyz'
net_file = '/home/martin/lib4neuro/he3+_.l4n'
data_file = '../../data/HE4+T1.xyz'
net_file = '../../he3+_.l4n'
cross_val_file = 'he3+_cross_validation.txt'
norm_file = 'he3+_norm.txt'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment