Skip to content
Snippets Groups Projects
Commit 75113508 authored by Evgeny Mortikov's avatar Evgeny Mortikov
Browse files

fixing initial conditions setup

parent 8628393e
Branches
No related tags found
No related merge requests found
#include "obl_def.fi"
module obl_init module obl_init
!< @brief initial conditions module !< @brief initial conditions module
! -------------------------------------------------------------------------------- ! --------------------------------------------------------------------------------
...@@ -120,6 +122,8 @@ module obl_init ...@@ -120,6 +122,8 @@ module obl_init
subroutine set_config_profile(F, tag, grid, ierr) subroutine set_config_profile(F, tag, grid, ierr)
!< @brief set constant profile !< @brief set constant profile
! ---------------------------------------------------------------------------- ! ----------------------------------------------------------------------------
use obl_common, only : char_array2str
type (gridDataType), intent(in) :: grid type (gridDataType), intent(in) :: grid
real, dimension(grid%cz), intent(out) :: F real, dimension(grid%cz), intent(out) :: F
......
...@@ -184,6 +184,7 @@ program obl_main ...@@ -184,6 +184,7 @@ program obl_main
! ---------------------------------------------------------------------------- ! ----------------------------------------------------------------------------
call set_grid(grid, obl_setup, ierr) call set_grid(grid, obl_setup, ierr)
if (ierr /= 0) then if (ierr /= 0) then
write(*, *) ' FAILURE! > unable to set grid '
return return
endif endif
...@@ -195,6 +196,7 @@ program obl_main ...@@ -195,6 +196,7 @@ program obl_main
! ---------------------------------------------------------------------------- ! ----------------------------------------------------------------------------
call set_time(time_begin, time_end, dt, obl_setup, ierr) call set_time(time_begin, time_end, dt, obl_setup, ierr)
if (ierr /= 0) then if (ierr /= 0) then
write(*, *) ' FAILURE! > unable to set time '
return return
endif endif
time_current = time_begin time_current = time_begin
...@@ -215,6 +217,7 @@ program obl_main ...@@ -215,6 +217,7 @@ program obl_main
! ---------------------------------------------------------------------------- ! ----------------------------------------------------------------------------
call set_phys(obl_setup, ierr) call set_phys(obl_setup, ierr)
if (ierr /= 0) then if (ierr /= 0) then
write(*, *) ' FAILURE! > unable to set phys parameters '
return return
endif endif
! ---------------------------------------------------------------------------- ! ----------------------------------------------------------------------------
...@@ -223,6 +226,7 @@ program obl_main ...@@ -223,6 +226,7 @@ program obl_main
! ---------------------------------------------------------------------------- ! ----------------------------------------------------------------------------
call set_forcing(obl_setup, ierr) call set_forcing(obl_setup, ierr)
if (ierr /= 0) then if (ierr /= 0) then
write(*, *) ' FAILURE! > unable to set forcing '
return return
endif endif
! ---------------------------------------------------------------------------- ! ----------------------------------------------------------------------------
...@@ -231,6 +235,7 @@ program obl_main ...@@ -231,6 +235,7 @@ program obl_main
! ---------------------------------------------------------------------------- ! ----------------------------------------------------------------------------
call set_initial_conditions(grid, obl_setup, ierr) call set_initial_conditions(grid, obl_setup, ierr)
if (ierr /= 0) then if (ierr /= 0) then
write(*, *) ' FAILURE! > unable to set initial conditions '
return return
endif endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment