Skip to content

Commit 71decbc

Browse files
committed
adds smooth etopo5 module (for Berkeley model)
1 parent 9607835 commit 71decbc

File tree

4 files changed

+401
-24
lines changed

4 files changed

+401
-24
lines changed

setup/constants.h.in

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
character (len=*), parameter :: PATHNAME_TOPO_FILE_1 = &
192192
'DATA/topo_bathy/topo_bathy_etopo1_ice_c_smoothed_window_3.bin'
193193

194-
!--- Default
194+
!!--- Default
195195
! Topography defaults to ETOPO4
196196
integer, parameter :: EARTH_NX_BATHY = NX_BATHY_4
197197
integer, parameter :: EARTH_NY_BATHY = NY_BATHY_4
@@ -258,9 +258,11 @@
258258
! topography model
259259
!!--- ETOPO1 5 - Berkeley filtered
260260
! size of topography and bathymetry file
261-
integer, parameter :: NX_BATHY_BERKELEY = 360,NY_BATHY_BERKELEY = 180
262-
! resolution of topography file in minutes
263-
integer, parameter :: RESOLUTION_TOPO_FILE_BERKELEY = 2
261+
! note: NX = 360 to match longitude range [0,360[ , i.e., 0,1,2,..,359
262+
! NY = 180 + 1 to match colatitude range [0,180], i.e., 0,1,2,..,180
263+
integer, parameter :: NX_BATHY_BERKELEY = 360,NY_BATHY_BERKELEY = 181
264+
! resolution of topography file in minutes (1 degree == 60 minutes)
265+
integer, parameter :: RESOLUTION_TOPO_FILE_BERKELEY = 60
264266
! pathname of the topography file (un-smoothed)
265267
character (len=*), parameter :: PATHNAME_TOPO_FILE_BERKELEY = trim(A3d_folder)//"ETOPO5_1x1_filtre.dat"
266268

src/meshfem3D/compute_element_properties.f90

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,6 @@ subroutine compute_element_tiso_flag(elem_is_tiso,elem_in_mantle,iregion_code,is
481481
IFLAG_CRUST,IFLAG_220_80,IFLAG_80_MOHO,IFLAG_670_220,IFLAG_MANTLE_NORMAL,IREGION_CRUST_MANTLE, &
482482
REFERENCE_MODEL_1DREF,REFERENCE_MODEL_1DREF,REFERENCE_MODEL_SEMUCB, &
483483
THREE_D_MODEL_S362WMANI,THREE_D_MODEL_SGLOBE, &
484-
THREE_D_MODEL_BERKELEY, &
485484
USE_OLD_VERSION_FORMAT
486485

487486
use meshfem_models_par, only: &
@@ -572,17 +571,16 @@ subroutine compute_element_tiso_flag(elem_is_tiso,elem_in_mantle,iregion_code,is
572571
endif
573572
endif
574573

575-
! TODO: daniel - check if full tiso mantle should be used
576-
!case (REFERENCE_MODEL_SEMUCB)
574+
case (REFERENCE_MODEL_SEMUCB)
577575
! SEMUCB - allows tiso for full mantle & crust
578576
! (same as USE_FULL_TISO_MANTLE option)
579-
!if (idoubling(ispec) == IFLAG_MANTLE_NORMAL &
580-
! .or. idoubling(ispec) == IFLAG_670_220 &
581-
! .or. idoubling(ispec) == IFLAG_220_80 &
582-
! .or. idoubling(ispec) == IFLAG_80_MOHO &
583-
! .or. idoubling(ispec) == IFLAG_CRUST) then
584-
! elem_is_tiso = .true.
585-
!endif
577+
if (idoubling(ispec) == IFLAG_MANTLE_NORMAL &
578+
.or. idoubling(ispec) == IFLAG_670_220 &
579+
.or. idoubling(ispec) == IFLAG_220_80 &
580+
.or. idoubling(ispec) == IFLAG_80_MOHO &
581+
.or. idoubling(ispec) == IFLAG_CRUST) then
582+
elem_is_tiso = .true.
583+
endif
586584

587585
case default
588586
! default reference models
@@ -641,10 +639,6 @@ subroutine compute_element_tiso_flag(elem_is_tiso,elem_in_mantle,iregion_code,is
641639
! note: THREE_D_MODEL_SGLOBE_ISO
642640
! sgloberani_iso model based on PREM, it will have tiso already set from crust down to 220
643641

644-
case (THREE_D_MODEL_BERKELEY)
645-
! additionally enables tiso for crust
646-
if (idoubling(ispec) == IFLAG_CRUST) elem_is_tiso = .true.
647-
648642
case default
649643
! nothing special to add
650644
continue

0 commit comments

Comments
 (0)