Skip to content

Commit 89d1601

Browse files
authored
Merge pull request #1665 from danielpeter/devel
updates tests; fixes LTS arrays for surface points and shakemaps; adds blender visualization scripts
2 parents 0321f61 + c836576 commit 89d1601

22 files changed

+4073
-95
lines changed

.github/workflows/CI.yml

Lines changed: 53 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -179,31 +179,67 @@ jobs:
179179
sudo echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
180180
sudo apt-get update
181181
echo ""
182-
echo "packages intel oneapi:"
183-
sudo apt-get install -y intel-oneapi-compiler-fortran intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic intel-oneapi-mpi intel-oneapi-mpi-devel
182+
# info
183+
#sudo -E apt-cache pkgnames intel | grep intel-oneapi
184+
#echo ""
185+
echo "installing packages intel oneapi:"
186+
sudo apt-get install -y intel-oneapi-compiler-fortran-2023.2.2 intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic-2023.2.2 intel-oneapi-mpi intel-oneapi-mpi-devel
187+
echo ""
184188
185189
- name: compiler infos
186190
run: |
187191
echo ""
188192
source /opt/intel/oneapi/setvars.sh
189193
echo ""
190194
echo "compiler versions:"
195+
echo "icx --version"
196+
which icx
197+
icx --version
198+
echo ""
191199
echo "icc --version"
200+
which icc
192201
icc --version
202+
echo ""
203+
echo "ifx --version"
204+
which ifx
205+
ifx --version
206+
echo ""
193207
echo "ifort --version"
208+
which ifort
194209
ifort --version
210+
echo ""
195211
echo "mpiifort --version"
212+
which mpiifort
196213
mpiifort --version
214+
echo ""
197215
echo "mpif90 --version"
216+
which mpif90
198217
mpif90 --version
199218
echo ""
219+
# infos
220+
which ifort
221+
which icc
222+
which mpiifort
223+
echo "mpirun:"
224+
which mpirun
225+
echo ""
226+
# intel setup for running tests
227+
echo ""
228+
echo "replacing mpif90 with mpiifort link:"
229+
sudo ln -sf $(which mpiifort) $(which mpif90)
230+
mpif90 --version
231+
echo ""
232+
# debug
233+
#export I_MPI_DEBUG=5,pid,host
234+
#export I_MPI_LIBRARY_KIND=debug
235+
# remove -ftrapuv which leads to issues for running tests
236+
sed -i "s/-ftrapuv//g" flags.guess
237+
# environment setting
200238
export TERM=xterm
239+
# export info
201240
echo "exports:"
202241
export
203242
echo ""
204-
which ifort
205-
which icc
206-
which mpiifort
207243
echo ""
208244
printenv >> $GITHUB_ENV
209245
echo "CXX=icpc" >> $GITHUB_ENV
@@ -212,7 +248,8 @@ jobs:
212248
echo ""
213249
214250
- name: configure serial debug
215-
run: ./configure --enable-debug --without-mpi FC=ifort CC=icc
251+
run: |
252+
./configure --enable-debug --without-mpi FC=ifort CC=icc
216253
217254
- name: make serial debug
218255
run: |
@@ -221,15 +258,17 @@ jobs:
221258
make clean
222259
223260
- name: configure serial
224-
run: ./configure --without-mpi FC=ifort CC=icc
261+
run: |
262+
./configure --without-mpi FC=ifort CC=icc
225263
226264
- name: make serial
227265
run: |
228266
make -j2 all
229267
make clean
230268
231269
- name: configure parallel debug
232-
run: ./configure --enable-debug --with-mpi FC=ifort CC=icc MPIFC=mpiifort MPI_INC="${I_MPI_ROOT}/include"
270+
run: |
271+
./configure --enable-debug --with-mpi FC=ifort CC=icc MPIFC=mpiifort MPI_INC="${I_MPI_ROOT}/include"
233272
234273
- name: make parallel debug
235274
run: |
@@ -238,16 +277,18 @@ jobs:
238277
make clean
239278
240279
- name: configure parallel
241-
run: ./configure --with-mpi FC=ifort CC=icc MPIFC=mpiifort MPI_INC="${I_MPI_ROOT}/include"
280+
run: |
281+
./configure --with-mpi FC=ifort CC=icc MPIFC=mpiifort MPI_INC="${I_MPI_ROOT}/include"
242282
243283
- name: make parallel
244284
run: |
245285
make -j2 all
246286
make clean
247287
248-
# check: fails due to intel MPI issue with mpif90 using gfortran as default on virtual nodes
249-
#- name: make tests
250-
# run: make tests
288+
# note: fails with -ftrapuv flag due to MPI issue on virtual nodes
289+
- name: make tests
290+
run: |
291+
make tests
251292
252293
linuxTest_0:
253294
name: Test run example 0 - make tests

EXAMPLES/applications/coffee_mug_with_fluid_inside/run_boundary_definition.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828

2929
###### This is boundary_definition.py of GEOCUBIT
3030
#..... which extracts the bounding faces and defines them into blocks
31-
reload(boundary_definition)
31+
import importlib
32+
importlib.reload(boundary_definition)
33+
3234
boundary_definition.entities=['face']
3335
boundary_definition.define_bc(boundary_definition.entities,parallel=True)
3436

EXAMPLES/applications/coffee_mug_with_fluid_inside/run_cubit2specfem3d.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,18 @@
2727

2828
###### This is boundary_definition.py of GEOCUBIT
2929
#..... which extracts the bounding faces and defines them into blocks
30-
#reload(boundary_definition)
30+
#import importlib
31+
#importlib.(boundary_definition)
3132
#boundary_definition.entities=['face']
3233
#boundary_definition.define_bc(boundary_definition.entities,parallel=True)
3334

3435

3536
#### Export to SESAME format using cubit2specfem3d.py of GEOCUBIT
3637
os.system('mkdir -p MESH')
3738

38-
reload(cubit2specfem3d)
39+
import importlib
40+
importlib.reload(cubit2specfem3d)
41+
3942
cubit2specfem3d.export2SPECFEM3D('MESH')
4043

4144
# all files needed by SCOTCH are now in directory MESH
-2 Bytes
Binary file not shown.

flags.guess

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,11 @@ case $my_FC in
9292
#
9393
# warnings about external function calls can be suppressed by "-warn all,noexternal" for version > 2018
9494
# optimization report: "-vec-report0" is old and will be replaced by "-qopt-report0 -qopt-report-phase=vec" for v >=15.0
95-
DEF_FFLAGS="-xHost -fpe0 -ftz -assume buffered_io -assume byterecl -align sequence -std08 -diag-disable 6477 -implicitnone -gen-interfaces -warn all" # -mcmodel=medium -shared-intel
95+
DEF_FFLAGS="-xHost -fpe0 -ftz -assume buffered_io -assume byterecl -align sequence -std08 -diag-disable 6477 -implicitnone -gen-interfaces -warn all,noexternal" # -mcmodel=medium -shared-intel
9696
OPT_FFLAGS="-O3 -check nobounds"
9797
DEBUG_FFLAGS="-check all -debug -g -O0 -fp-stack-check -traceback -ftrapuv"
9898
# option "-openmp" is soon deprecated and replaced by "-qopenmp" for versions > 17.x
9999
OMP_FFLAGS="-qopenmp"
100-
#
101100
;;
102101
gfortran|*/gfortran|f95|*/f95)
103102
#

src/auxiliaries/combine_surf_data.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ program combine_surf_data
277277
read(27) zstore
278278
close(27)
279279

280-
do ispec_surf=1,nspec_surf
280+
do ispec_surf = 1,nspec_surf
281281
ispec = ibelm_surf(ispec_surf)
282282
k = 1
283283
do j = 1, NGLLY, iny
@@ -345,7 +345,7 @@ program combine_surf_data
345345

346346
np = npoint * (it-1)
347347

348-
! surface file
348+
! surface file
349349
local_ibool_surf_file = trim(prname) // 'ibelm_' //trim(surfname)// '.bin'
350350
open(unit = 28,file = trim(local_ibool_surf_file),status='old', iostat = ier, form='unformatted')
351351
read(28) nspec_surf
@@ -354,7 +354,7 @@ program combine_surf_data
354354
read(28) ibelm_surf
355355
close(28)
356356

357-
! ibool file
357+
! ibool file
358358
local_ibool_file = trim(prname) // 'ibool' // '.bin'
359359
open(unit = 28,file = trim(local_ibool_file),status='old', iostat = ier, form='unformatted')
360360
read(28) ibool

src/generate_databases/create_regions_mesh.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,7 @@ subroutine crm_setup_mesh_surface()
18571857
nfaces_surface = NSPEC2D_TOP
18581858
endif
18591859

1860-
! number of surface faces for all partitions together
1860+
! number of surface faces for all partitions together
18611861
call sum_all_i(nfaces_surface,nfaces_surface_glob_ext_mesh)
18621862

18631863
deallocate(ibool_interfaces_ext_mesh_dummy)

0 commit comments

Comments
 (0)