diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b9b5fafff..ddcf5972b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -44,8 +44,12 @@ add_library(DEBUG OBJECT "debug.f90") add_dependencies(DEBUG IO) list(APPEND OBJECTFILES $) -add_library(DAMASK_CONFIG OBJECT "config.f90") -add_dependencies(DAMASK_CONFIG DEBUG) +add_library(DAMASK_LIST OBJECT "list.f90") # LIST is a keyword in CMake +add_dependencies(DAMASK_LIST IO) +list(APPEND OBJECTFILES $) + +add_library(DAMASK_CONFIG OBJECT "config.f90") # CONFIG is a keyword in CMake +add_dependencies(DAMASK_CONFIG DAMASK_LIST DEBUG) list(APPEND OBJECTFILES $) add_library(HDF5_UTILITIES OBJECT "HDF5_utilities.f90") diff --git a/src/commercialFEM_fileList.f90 b/src/commercialFEM_fileList.f90 index 39e9269f4..77a8f0df4 100644 --- a/src/commercialFEM_fileList.f90 +++ b/src/commercialFEM_fileList.f90 @@ -6,6 +6,7 @@ #include "IO.f90" #include "numerics.f90" #include "debug.f90" +#include "list.f90" #include "config.f90" #ifdef DAMASKHDF5 #include "HDF5_utilities.f90" diff --git a/src/list.f90 b/src/list.f90 index 93c19b903..6725d5902 100644 --- a/src/list.f90 +++ b/src/list.f90 @@ -224,7 +224,8 @@ real(pReal) function getFloat(this,key,defaultVal) real(pReal), intent(in), optional :: defaultVal type(tPartitionedStringList), pointer :: item logical :: found - + + getFloat = huge(1.0) ! suppress warning about unitialized value found = present(defaultVal) if (found) getFloat = defaultVal @@ -261,6 +262,7 @@ integer function getInt(this,key,defaultVal) type(tPartitionedStringList), pointer :: item logical :: found + getInt = huge(1) ! suppress warning about unitialized value found = present(defaultVal) if (found) getInt = defaultVal