MONC
clearsourceterms.F90
Go to the documentation of this file.
1 
4  use state_mod, only : model_state_type
7 implicit none
8 
9 #ifndef TEST_MODE
10  private
11 #endif
12 
14 contains
18  clearsourceterms_get_descriptor%name="clearsourceterms"
22 
25  subroutine timestep_callback(current_state)
26  type(model_state_type), target, intent(inout) :: current_state
27 
28  integer :: i
29 
30 #ifdef U_ACTIVE
31  current_state%su%data=0.0_default_precision
32 #endif
33 #ifdef V_ACTIVE
34  current_state%sv%data=0.0_default_precision
35 #endif
36 #ifdef W_ACTIVE
37  current_state%sw%data=0.0_default_precision
38 #endif
39 
40  if (current_state%sth%active) then
41  current_state%sth%data=0.0_default_precision
42  end if
43 
44  do i=1, current_state%number_q_fields
45  current_state%sq(i)%data=0.0_default_precision
46  end do
47  end subroutine timestep_callback
48 end module clearsourceterms_mod
clearsourceterms_mod
Clears the source terms at the start of a timestep to then be populated by items in the dynamics grou...
Definition: clearsourceterms.F90:2
clearsourceterms_mod::timestep_callback
subroutine timestep_callback(current_state)
Timestep callback which simply clears the source terms.
Definition: clearsourceterms.F90:26
monc_component_mod
Interfaces and types that MONC components must specify.
Definition: monc_component.F90:6
clearsourceterms_mod::clearsourceterms_get_descriptor
type(component_descriptor_type) function, public clearsourceterms_get_descriptor()
Provides a description of this component for the core to register.
Definition: clearsourceterms.F90:18
monc_component_mod::component_field_value_type
Wrapper type for the value returned for a published field from a component.
Definition: monc_component.F90:22
state_mod::model_state_type
The ModelState which represents the current state of a run.
Definition: state.F90:39
monc_component_mod::component_field_information_type
Definition: monc_component.F90:31
datadefn_mod
Contains common definitions for the data and datatypes used by MONC.
Definition: datadefn.F90:2
monc_component_mod::component_descriptor_type
Description of a component.
Definition: monc_component.F90:42
monc_component_mod::component_double_data_type
integer, parameter, public component_double_data_type
Definition: monc_component.F90:16
datadefn_mod::default_precision
integer, parameter, public default_precision
MPI communication type which we use for the prognostic and calculation data.
Definition: datadefn.F90:17
state_mod
The model state which represents the current state of a run.
Definition: state.F90:2
monc_component_mod::component_array_field_type
integer, parameter, public component_array_field_type
Definition: monc_component.F90:15