Skip to content

Commit 8a2b596

Browse files
authored
Adapt the termal boundary conditions
The changes to the termal boundary conditions enabes the uses of 100 coefficient of spherical harmonics. Also the setting of mode l=0 and m=0 automatically to 1 is only done if no specific BC are defined.
1 parent 414fddd commit 8a2b596

2 files changed

Lines changed: 2 additions & 2 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ subroutine preCalc(tscheme)
413413
botconduc = rho0(n_r_max)*kappa(n_r_max)*temp0(n_r_max)
414414
end if
415415

416-
if ( ktops == 1 .and. kbots == 1 ) then ! Fixed entropy
416+
if ( ktops == 1 .and. kbots == 1 .and. ( tops(0,0) == 0.0_cp .and. bots(0,0) == 0.0_cp ) ) then ! Fixed entropy
417417

418418
tops(0,0)=0.0_cp
419419
bots(0,0)=sq4pi

0 commit comments

Comments
 (0)