Skip to content

Commit 8491453

Browse files
author
Himpu Marbona
committed
Debug SamplingMonitor
1 parent 0cdd8a6 commit 8491453

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

Solver/src/MultiphaseSolver/SpatialDiscretization.f90

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,17 +190,18 @@ subroutine Initialize_SpaceAndTimeMethods(controlVariables, mesh)
190190
error stop
191191

192192
end select
193-
193+
194+
call CHDiscretization % Construct(controlVariables, ELLIPTIC_CH)
195+
call CHDiscretization % Describe
196+
197+
if ( .not. MPI_Process % isRoot ) return
198+
194199
use_non_constant_speed_of_sound = controlVariables % ContainsKey(FLUID1_COMPRESSIBILITY_KEY)
195200
if(use_non_constant_speed_of_sound) then
196201
write(STD_OUT,'(A)') " Implementing artificial compressibility with a non-constant speed of sound in each phase"
197202
else
198-
write(STD_OUT,'(A)') " Implementing artificial compressibility with a constant speed of sound in each phase"
203+
write(STD_OUT,'(A)') " Implementing artificial compressibility with a constant ACM factor in each phase"
199204
endif
200-
201-
call CHDiscretization % Construct(controlVariables, ELLIPTIC_CH)
202-
call CHDiscretization % Describe
203-
204205

205206
end if
206207

Solver/src/libs/monitors/Samplings.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ subroutine Sampling_Destruct (self)
267267

268268
end subroutine
269269

270-
elemental subroutine Sampling_Assign ( to, from )
270+
impure elemental subroutine Sampling_Assign ( to, from )
271271
implicit none
272272
!-arguments--------------------------------------
273273
class(Sampling_t), intent(inout) :: to
@@ -290,6 +290,7 @@ elemental subroutine Sampling_Assign ( to, from )
290290
safedeallocate ( to % surfaceSamplings )
291291
safedeallocate ( to % planeSamplings )
292292
safedeallocate ( to % spatialMeanNodes )
293+
293294
allocate ( to % surfaceSamplings ( size(from % surfaceSamplings) ) )
294295
allocate ( to % planeSamplings ( size(from % planeSamplings ) ) )
295296
allocate ( to % spatialMeanNodes ( size(from % spatialMeanNodes ) ) )

0 commit comments

Comments
 (0)