Skip to content

Commit e1ccf11

Browse files
committed
Adapt the termal boundary conditions
The changes to the termal boundary conditions enabes the uses of 100 coefficient of spherical harmonics. Also the set of mode l=0 and m=0 automatically to 1 is commented out, since this affects the BC set. Now the thermal BC s_top and s_bot need to be defined precisely.
1 parent 2261f7d commit e1ccf11

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/init_fields.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module init_fields
6262
real(cp), public :: amp_s1,amp_s2,amp_v1,amp_b1,amp_xi1,amp_xi2
6363

6464
!----- Entropy at CMB and ICB (input):
65-
integer, public, parameter :: n_s_bounds=20
65+
integer, public, parameter :: n_s_bounds=100
6666
real(cp), public :: s_bot(4*n_s_bounds) ! input variables for tops,bots
6767
real(cp), public :: s_top(4*n_s_bounds)
6868
complex(cp), public, allocatable :: tops(:,:)

src/preCalculations.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ subroutine preCalc(tscheme)
415415

416416
if ( ktops == 1 .and. kbots == 1 ) then ! Fixed entropy
417417

418-
tops(0,0)=0.0_cp
419-
bots(0,0)=sq4pi
418+
! tops(0,0)=0.0_cp
419+
! bots(0,0)=sq4pi
420420

421421
else if ( ktops == 3 .and. kbots == 3 ) then ! Fixed temperature contrast
422422

0 commit comments

Comments
 (0)