Skip to content

Commit 59e8a58

Browse files
authored
Merge pull request #1279 from jvgeiger/fix/compiling_lis_rapid_cray
Fix compiling LIS/RAPID with Cray compilers
2 parents 491a9ec + 60764f1 commit 59e8a58

File tree

4 files changed

+737
-701
lines changed

4 files changed

+737
-701
lines changed

env/discover/lisf_7_intel_2021.4.0_petsc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ proc ModulesHelp { } {
2525
puts stderr "\t\tLIS_CRTM_PROF"
2626
puts stderr "\t\tLIS_CMEM"
2727
puts stderr "\t\tLIS_LAPACK"
28+
puts stderr "\t\tLIS_PETSC"
2829
puts stderr "\t\tLDT_ARCH"
2930
puts stderr "\t\tLDT_FC"
3031
puts stderr "\t\tLDT_CC"
@@ -120,7 +121,7 @@ setenv LIS_CRTM $def_lis_crtm
120121
setenv LIS_CRTM_PROF $def_lis_crtm_prof
121122
setenv LIS_CMEM $def_lis_cmem
122123
setenv LIS_LAPACK $def_lis_lapack
123-
setenv LIS_PETSc $def_lis_petsc
124+
setenv LIS_PETSC $def_lis_petsc
124125

125126
setenv LDT_ARCH linux_ifc
126127
setenv LDT_FC mpiifort
@@ -164,4 +165,5 @@ prepend-path LD_LIBRARY_PATH "$def_lis_hdf5/lib"
164165
prepend-path LD_LIBRARY_PATH "$def_lis_libesmf"
165166
prepend-path LD_LIBRARY_PATH "$def_lis_netcdf/lib"
166167
prepend-path LD_LIBRARY_PATH "$def_lis_eccodes/lib"
168+
prepend-path LD_LIBRARY_PATH "$def_lis_petsc/lib"
167169
prepend-path PATH "$def_lis_netcdf/bin:$def_lis_eccodes/bin"

lis/LICENSES/RAPID_License.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Component name: RAPID router
2+
3+
Contributing organization/individuals: Jet Propulsion Laboratory, Pasadena, CA.
4+
5+
POC: Cedric H. David; Jet Propulsion Laboratory, ph: 818.354.4416
6+
7+
License:
8+
9+
From https://github.com/c-h-david/rapid/master/LICENSE commit 3508728c6c4e08fa31949bd4f035bf07dfbce752.
10+
11+
Copyright (c) 2007-2021, Cedric H. David
12+
13+
All rights reserved.
14+
15+
Redistribution and use in source and binary forms, with or without modification,
16+
are permitted provided that the following conditions are met:
17+
* Redistributions of source code must retain the above copyright notice, this
18+
list of conditions and the following disclaimer.
19+
* Redistributions in binary form must reproduce the above copyright notice, this
20+
list of conditions and the following disclaimer in the documentation and/or
21+
other materials provided with the distribution.
22+
* The name Cedric H. David may not be used to endorse or promote products
23+
derived from this software without specific prior written permission.
24+
25+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
26+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
27+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28+
DISCLAIMED. IN NO EVENT SHALL CEDRIC H. DAVID BE LIABLE FOR ANY DIRECT,
29+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
30+
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
32+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
33+
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
34+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

lis/arch/Config.pl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -857,8 +857,8 @@
857857
}
858858

859859
if($use_petsc == 1) {
860-
if(defined($ENV{LIS_PETSc})){
861-
$sys_petsc_path = $ENV{LIS_PETSc};
860+
if(defined($ENV{LIS_PETSC})){
861+
$sys_petsc_path = $ENV{LIS_PETSC};
862862
$inc = "/include/";
863863
$lib = "/lib/";
864864
$inc_petsc=$sys_petsc_path.$inc;
@@ -867,7 +867,7 @@
867867
else {
868868
print "--------------ERROR---------------------\n";
869869
print "Please specify the PETSc path using\n";
870-
print "the LIS_PETsc variable.\n";
870+
print "the LIS_PETSC variable.\n";
871871
print "Configuration exiting ....\n";
872872
print "--------------ERROR---------------------\n";
873873
exit 1;
@@ -1069,8 +1069,8 @@
10691069
}
10701070

10711071
if($use_petsc == 1){
1072-
$fflags = $fflags." -I\$(INC_PETSc)";
1073-
$ldflags = $ldflags." -L\$(LIB_PETSc) -Wl,-rpath,\$(LIB_PETSc) -lpetsc -lm";
1072+
$fflags = $fflags." -I\$(INC_PETSC)";
1073+
$ldflags = $ldflags." -L\$(LIB_PETSC) -lpetsc -lm";
10741074
}
10751075

10761076
if($use_esmf_trace == 1){
@@ -1159,8 +1159,8 @@
11591159
printf conf_file "%s%s\n","INC_CMEM = $inc_cmem";
11601160
printf conf_file "%s%s\n","LIB_CMEM = $lib_cmem";
11611161
printf conf_file "%s%s\n","LIB_LAPACK = $lib_lapack";
1162-
printf conf_file "%s%s\n","INC_PETSc = $inc_petsc";
1163-
printf conf_file "%s%s\n","LIB_PETSc = $lib_petsc";
1162+
printf conf_file "%s%s\n","INC_PETSC = $inc_petsc";
1163+
printf conf_file "%s%s\n","LIB_PETSC = $lib_petsc";
11641164
printf conf_file "%s%s\n","CFLAGS = $cflags";
11651165
printf conf_file "%s%s\n","FFLAGS77 = $fflags77";
11661166
printf conf_file "%s%s\n","FFLAGS = $fflags";

0 commit comments

Comments
 (0)