Skip to content

Commit

Permalink
added capability to compile both shared object (libcrtm.so) and stati…
Browse files Browse the repository at this point in the history
…c object (libcrtm_static.a) files. If you're suddenly having linking problems or segmentation faults in your ctests, this is the cause. First use ldd to check that your compiled ctests (located in build/test) are compiling against the correct shared object -- it will try to pick up things from your LD_LIBRARY_PATH. If you're getting endian errors: export F_UFMTENDIAN=little or export F_UFMTENDIAN=big will swap endianness for you without the need to recompile. Just be sure to update the test/CMakeLists.txt file to point to either Big_Endian or Little_Endian directories.
  • Loading branch information
BenjaminTJohnson committed Aug 12, 2024
1 parent fa42490 commit cf4fded
Show file tree
Hide file tree
Showing 40 changed files with 20 additions and 2,780 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ else()
message(STATUS "No build type specified, defaulting to Release.")
endif()

set(crtm_LIBRARIES crtm)
#set(crtm_LIBRARIES crtm)
12 changes: 0 additions & 12 deletions TEST_CRTM_Liu/README_testData

This file was deleted.

19 changes: 7 additions & 12 deletions cmake/compiler_flags_Intel_Fortran.cmake
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
# (C) Copyright 2009-2016 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmental organisation nor
# does it submit to any jurisdiction.

####################################################################
# FLAGS COMMON TO ALL BUILD TYPES
####################################################################

set( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -assume byterecl -fPIC")
set( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -assume byterecl")

if( HAVE_AUTOPROFILE )
set( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -finstrument-functions")
Expand All @@ -28,6 +20,12 @@ set( CMAKE_Fortran_FLAGS_RELEASE "-O3 -ip -unroll -inline -no-heap-arrays" )

set( CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -check bounds -traceback -warn -heap-arrays -fpe-all=0 -fpe:0 -ftz -check all" )

####################################################################
# RELEASE WITH DEBUG INFO FLAGS
####################################################################

set( CMAKE_Fortran_FLAGS_RELWITHDEBINFO "-O3 -ip -unroll -inline -g -DNDEBUG -check bounds -traceback -no-heap-arrays -assume byterecl" )

####################################################################
# BIT REPRODUCIBLE FLAGS
####################################################################
Expand All @@ -42,7 +40,4 @@ set( CMAKE_Fortran_LINK_FLAGS "" )

####################################################################

# Meaning of flags
# ----------------
# todo

18 changes: 0 additions & 18 deletions configuration/ftn.setup

This file was deleted.

9 changes: 0 additions & 9 deletions configuration/ftn.setup.csh

This file was deleted.

10 changes: 0 additions & 10 deletions configuration/g95-debug.setup.csh

This file was deleted.

9 changes: 0 additions & 9 deletions configuration/g95.setup.csh

This file was deleted.

48 changes: 0 additions & 48 deletions configuration/gfortran-debug.setup

This file was deleted.

9 changes: 0 additions & 9 deletions configuration/gfortran-debug.setup.csh

This file was deleted.

47 changes: 0 additions & 47 deletions configuration/gfortran.setup

This file was deleted.

9 changes: 0 additions & 9 deletions configuration/gfortran.setup.csh

This file was deleted.

37 changes: 0 additions & 37 deletions configuration/ifort-debug.setup

This file was deleted.

9 changes: 0 additions & 9 deletions configuration/ifort-debug.setup.csh

This file was deleted.

39 changes: 0 additions & 39 deletions configuration/ifort.setup

This file was deleted.

9 changes: 0 additions & 9 deletions configuration/ifort.setup.csh

This file was deleted.

21 changes: 0 additions & 21 deletions configuration/pgf95-debug.setup

This file was deleted.

9 changes: 0 additions & 9 deletions configuration/pgf95-debug.setup.csh

This file was deleted.

14 changes: 0 additions & 14 deletions configuration/pgf95.setup

This file was deleted.

9 changes: 0 additions & 9 deletions configuration/pgf95.setup.csh

This file was deleted.

Loading

0 comments on commit cf4fded

Please sign in to comment.