Skip to content
Snippets Groups Projects
Commit 4d924975 authored by Maren Kaluza's avatar Maren Kaluza Committed by Sebastian Müller
Browse files

changed 'stop' to error_messages

parent b3a7d2df
Branches datetime_partial_string_fix
No related tags found
1 merge request!81Rework optimization routines
Pipeline #267792 passed with stages
in 10 minutes and 42 seconds
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
!! FORCES is released under the LGPLv3+ license \license_note !! FORCES is released under the LGPLv3+ license \license_note
MODULE mo_optimization_types MODULE mo_optimization_types
use mo_kind, only : i4, dp use mo_kind, only : i4, dp
use mo_message, only: error_message
IMPLICIT NONE IMPLICIT NONE
...@@ -140,7 +141,6 @@ MODULE mo_optimization_types ...@@ -140,7 +141,6 @@ MODULE mo_optimization_types
end subroutine sim_data_add end subroutine sim_data_add
! ToDo: rename ndim -> data_shape
subroutine sim_data_allocate(this, name, data_shape) subroutine sim_data_allocate(this, name, data_shape)
class(sim_data_t), target, intent(inout) :: this class(sim_data_t), target, intent(inout) :: this
character(*), intent(in) :: name character(*), intent(in) :: name
...@@ -162,8 +162,7 @@ MODULE mo_optimization_types ...@@ -162,8 +162,7 @@ MODULE mo_optimization_types
case(5) case(5)
allocate(this%variables(i)%data_5d(data_shape(1), data_shape(2), data_shape(3), data_shape(4), data_shape(5))) allocate(this%variables(i)%data_5d(data_shape(1), data_shape(2), data_shape(3), data_shape(4), data_shape(5)))
case default case default
! ToDo: replace stop by error message call error_message('sim_data_allocate: Allocating simulated data with other dimensions than 1 to 5 is not impemented.')
stop ('sim_data_allocate: Allocating simulated data with other dimensions than 1 to 5 is not impemented.')
end select end select
end if end if
end do end do
...@@ -183,7 +182,7 @@ MODULE mo_optimization_types ...@@ -183,7 +182,7 @@ MODULE mo_optimization_types
end if end if
end do end do
if (sim_data_get_id == -1) stop ('sim_data_get_id: The simulated variable name does not exist.') if (sim_data_get_id == -1) call error_message('sim_data_get_id: The simulated variable name', trim(name), 'does not exist.')
end function sim_data_get_id end function sim_data_get_id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment