Skip to content

Commit 4331ca3

Browse files
author
Himpu Marbona
committed
Debug SamplingMonitor
1 parent 8491453 commit 4331ca3

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

Solver/src/MultiphaseSolver/SpatialDiscretization.f90

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,14 @@ subroutine Initialize_SpaceAndTimeMethods(controlVariables, mesh)
190190
error stop
191191

192192
end select
193-
193+
194+
use_non_constant_speed_of_sound = controlVariables % ContainsKey(FLUID1_COMPRESSIBILITY_KEY)
195+
194196
call CHDiscretization % Construct(controlVariables, ELLIPTIC_CH)
195197
call CHDiscretization % Describe
196198

197199
if ( .not. MPI_Process % isRoot ) return
198200

199-
use_non_constant_speed_of_sound = controlVariables % ContainsKey(FLUID1_COMPRESSIBILITY_KEY)
200201
if(use_non_constant_speed_of_sound) then
201202
write(STD_OUT,'(A)') " Implementing artificial compressibility with a non-constant speed of sound in each phase"
202203
else

Solver/src/libs/monitors/Samplings.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ module Samplings
2020
!
2121
type Sampling_t
2222
character(len=LINE_LENGTH) :: solution_file
23-
integer :: no_of_surfaceSamplings
24-
integer :: no_of_planeSamplings
25-
integer :: no_of_spatialMeanNodes
23+
integer :: no_of_surfaceSamplings =0
24+
integer :: no_of_planeSamplings =0
25+
integer :: no_of_spatialMeanNodes =0
2626
integer :: dt_restriction
2727
logical :: write_dt_restriction
2828
class(SurfaceSampling_t), allocatable :: surfaceSamplings(:)

Solver/src/libs/timeintegrator/pAdaptationClass.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ subroutine OverEnriching_Initialize(this,oID)
363363
! -----------------------------------------------
364364
write(STD_OUT,'(/)')
365365
call SubSection_Header("Initialize Adaptation based on Overenriching Box")
366-
write(STD_OUT,'(30X,A,A27,A20)') "->" , "ID: " , this % ID
366+
write(STD_OUT,'(30X,A,A27,I4)') "->" , "ID: " , this % ID
367367
write(STD_OUT,'(30X,A,A27,A20)') "->" , "x span: " , x_span
368368
write(STD_OUT,'(30X,A,A27,A20)') "->" , "y span: " , y_span
369369
write(STD_OUT,'(30X,A,A27,A20)') "->" , "z span: " , z_span

Solver/src/libs/timeintegrator/pAdaptationClassRL.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,12 @@ subroutine pAdaptation_Construct(this, controlVariables, t0, mesh)
341341
case ("rho")
342342
this % acoustic_variable = 8
343343
case default
344-
WRITE(STD_OUT,*) 'Not recognized acoustic variable. Using pressure by default.'
345344
this % acoustic_variable = 7
345+
if ( MPI_Process % isRoot ) WRITE(STD_OUT,*) 'Undefined acoustic variable. Using pressure by default.'
346346
end select
347347
else
348-
WRITE(STD_OUT,*) 'Undefined acoustic variable. Using pressure by default.'
349348
this % acoustic_variable = 7
349+
if ( MPI_Process % isRoot ) WRITE(STD_OUT,*) 'Undefined acoustic variable. Using pressure by default.'
350350
end if
351351

352352
call mesh % DefineAcousticElements(this % observer, this % acoustic_sources, this % acoustic_distance, surfacesMesh % zones)

0 commit comments

Comments
 (0)