Skip to content

Commit 30b4ab8

Browse files
committed
Merge branch 'macos-gcc-9-fixes' of github.com:sourceryinstitute/OpenCoarrays
2 parents efdac20 + 0beb35b commit 30b4ab8

File tree

4 files changed

+40
-13
lines changed

4 files changed

+40
-13
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ matrix:
2626
os: osx
2727
env:
2828
- BUILD_TYPE="InstallScript"
29-
GCC=8
29+
GCC=9
3030
OSX_PACKAGES="gcc shellcheck cmake mpich"
3131
# cmake should be removed, but we should be installing binaries
3232
# because building from source takes forever

CMakeLists.txt

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,6 @@ set ( CMAKE_CONFIGURATION_TYPES "Debug" "Release" "MinSizeRel" "RelWithDebInfo"
1717
set ( CMAKE_BUILD_TYPE "Release"
1818
CACHE STRING "Select which configuration to build." )
1919
set_property ( CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_CONFIGURATION_TYPES} )
20-
message( STATUS
21-
"
22-
============================================================
23-
Building OpenCoarrays configuration: ${CMAKE_BUILD_TYPE}
24-
============================================================
25-
")
26-
27-
message( STATUS "Running with CMake from: ${CMAKE_COMMAND}" )
28-
message( STATUS "Current source dir (for OpenCoarrays): ${CMAKE_CURRENT_SOURCE_DIR}")
2920

3021
# Add option and check environment to determine if developer tests should be run
3122
set( _TF OFF )
@@ -52,8 +43,7 @@ string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+(-rc[0-9]+)?"
5243
OpenCoarraysVersion "${first_line}")
5344

5445
if((NOT (OpenCoarraysVersion MATCHES "[0-9]+\\.[0-9]+\\.[0-9]+(-rc[0-9]+)?")) AND (EXISTS "${CMAKE_SOURCE_DIR}/.git"))
55-
message( STATUS "Build from git repository detected")
56-
find_package(Git)
46+
find_package(Git QUIET)
5747
if(GIT_FOUND)
5848
execute_process(COMMAND "${GIT_EXECUTABLE}" describe --abbrev=0
5949
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
@@ -96,6 +86,18 @@ string(REGEX REPLACE "-rc[0-9]+$"
9686
".0" OPENCOARRAYS_CMAKE_PROJECT_VERSION
9787
"${OpenCoarraysVersion}")
9888

89+
file(READ "${CMAKE_CURRENT_LIST_DIR}/cmake/Banner.txt.in" OC_BANNER)
90+
string(CONFIGURE "${OC_BANNER}" OC_BANNER @ONLY)
91+
string(STRIP "${OC_BANNER}" OC_BANNER)
92+
message(STATUS "${OC_BANNER}")
93+
94+
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/.git")
95+
message( STATUS "Build from git repository detected")
96+
endif()
97+
98+
message( STATUS "Running with CMake from: ${CMAKE_COMMAND}" )
99+
message( STATUS "Current source dir (for OpenCoarrays): ${CMAKE_CURRENT_SOURCE_DIR}")
100+
99101
project(opencoarrays VERSION "${OPENCOARRAYS_CMAKE_PROJECT_VERSION}" LANGUAGES C Fortran)
100102

101103
if(DEFINED CMAKE_BUILD_TYPE AND "${CMAKE_BUILD_TYPE}" MATCHES "[Rr][Ee][Ll]")

cmake/Banner.txt.in

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
------------------------------------------------------------------------------- --
2+
3+
_/_/
4+
_/ _/ _/_/_/ _/_/ _/_/_/
5+
_/ _/ _/ _/ _/_/_/_/ _/ _/
6+
_/ _/ _/ _/ _/ _/ _/
7+
_/_/ _/_/_/ _/_/_/ _/ _/
8+
_/
9+
_/
10+
11+
_/_/_/
12+
_/ _/_/ _/_/_/ _/ _/_/ _/ _/_/ _/_/_/ _/ _/ _/_/_/
13+
_/ _/ _/ _/ _/ _/_/ _/_/ _/ _/ _/ _/ _/_/
14+
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/
15+
_/_/_/ _/_/ _/_/_/ _/ _/ _/_/_/ _/_/_/ _/_/_/
16+
_/
17+
_/_/
18+
OpenCoarrays
19+
""""""""""""
20+
Build Type: @CMAKE_BUILD_TYPE@
21+
Version: @full_git_describe@
22+
23+
-- ------------------------------------------------------------------------------ --

src/tests/integration/pde_solvers/coarrayBurgers/main.F90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ program main
88
real(real64), parameter :: nu=1.,final_time=0.6_real64,tolerance=1.E-3_real64,safety_factor=0.1_real64
99
real(real64) :: time=0.,dt,dx
1010
integer, parameter :: nodes=16
11-
procedure(initial_condition), pointer :: initial_u=>ten_sin
11+
procedure(initial_condition), pointer :: initial_u=>null()
12+
13+
initial_u => ten_sin
1214

1315
#ifdef TAU
1416
call TAU_PROFILE_SET_NODE(this_image()-1) ! Start TAU (Cray or GNU compiler)

0 commit comments

Comments
 (0)