Files
SPHLite/src/interface/sph_api_state.f90
T

35 lines
869 B
Fortran

module sph_api_state
implicit none
logical :: sph_api_initialized = .false.
logical :: sph_api_model_built = .false.
contains
subroutine sph_api_state_set_initialized(value)
logical, intent(in) :: value
sph_api_initialized = value
if (.not. value) sph_api_model_built = .false.
end subroutine sph_api_state_set_initialized
subroutine sph_api_state_get_initialized(value)
logical, intent(out) :: value
value = sph_api_initialized
end subroutine sph_api_state_get_initialized
subroutine sph_api_state_set_model_built(value)
logical, intent(in) :: value
sph_api_model_built = value
end subroutine sph_api_state_set_model_built
subroutine sph_api_state_get_model_built(value)
logical, intent(out) :: value
value = sph_api_model_built
end subroutine sph_api_state_get_model_built
end module sph_api_state