Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mossco
mossco-fabm
Commits
cef37b7e
Commit
cef37b7e
authored
Jun 15, 2016
by
Jorn Bruggeman
Browse files
type_{surface,bottom}_flux_copier -> type_{surface,bottom}_source_copier
parent
513d5c81
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/fabm_builtin_models.F90
View file @
cef37b7e
...
...
@@ -154,22 +154,22 @@ module fabm_builtin_models
procedure
::
do_bottom
=>
flux_copier_do_bottom
end
type
type
,
extends
(
type_base_model
)
::
type_surface_
flux
_copier
type
,
extends
(
type_base_model
)
::
type_surface_
source
_copier
type
(
type_surface_state_variable_id
)
::
id_target
type
(
type_horizontal_dependency_id
)
::
id_sms
real
(
rk
)
::
scale_factor
=
1.0_rk
contains
procedure
::
initialize
=>
surface_
flux
_copier_initialize
procedure
::
do_surface
=>
surface_
flux
_copier_do_surface
procedure
::
initialize
=>
surface_
source
_copier_initialize
procedure
::
do_surface
=>
surface_
source
_copier_do_surface
end
type
type
,
extends
(
type_base_model
)
::
type_bottom_
flux
_copier
type
,
extends
(
type_base_model
)
::
type_bottom_
source
_copier
type
(
type_bottom_state_variable_id
)
::
id_target
type
(
type_horizontal_dependency_id
)
::
id_sms
real
(
rk
)
::
scale_factor
=
1.0_rk
contains
procedure
::
initialize
=>
bottom_
flux
_copier_initialize
procedure
::
do_bottom
=>
bottom_
flux
_copier_do_bottom
procedure
::
initialize
=>
bottom_
source
_copier_initialize
procedure
::
do_bottom
=>
bottom_
source
_copier_do_bottom
end
type
contains
...
...
@@ -716,8 +716,8 @@ module fabm_builtin_models
character
(
len
=*
),
intent
(
in
)
::
target_variable
real
(
rk
),
optional
,
intent
(
in
)
::
scale_factor
class
(
type_bottom_
flux
_copier
),
pointer
::
bottom_copier
class
(
type_surface_
flux
_copier
),
pointer
::
surface_copier
class
(
type_bottom_
source
_copier
),
pointer
::
bottom_copier
class
(
type_surface_
source
_copier
),
pointer
::
surface_copier
select
case
(
source_variable
%
link
%
target
%
domain
)
case
(
domain_bottom
)
...
...
@@ -773,16 +773,16 @@ module fabm_builtin_models
_
HORIZONTAL_LOOP_END_
end
subroutine
flux_copier_do_bottom
subroutine
surface_
flux
_copier_initialize
(
self
,
configunit
)
class
(
type_surface_
flux
_copier
),
intent
(
inout
),
target
::
self
integer
,
intent
(
in
)
::
configunit
subroutine
surface_
source
_copier_initialize
(
self
,
configunit
)
class
(
type_surface_
source
_copier
),
intent
(
inout
),
target
::
self
integer
,
intent
(
in
)
::
configunit
call
self
%
register_state_dependency
(
self
%
id_target
,
'target'
,
''
,
'target variable'
)
call
self
%
register_dependency
(
self
%
id_sms
,
'sms'
,
''
,
'sources minus sinks'
)
end
subroutine
surface_
flux
_copier_initialize
end
subroutine
surface_
source
_copier_initialize
subroutine
surface_
flux
_copier_do_surface
(
self
,
_
ARGUMENTS_DO_SURFACE_
)
class
(
type_surface_
flux
_copier
),
intent
(
in
)
::
self
subroutine
surface_
source
_copier_do_surface
(
self
,
_
ARGUMENTS_DO_SURFACE_
)
class
(
type_surface_
source
_copier
),
intent
(
in
)
::
self
_
DECLARE_ARGUMENTS_DO_SURFACE_
real
(
rk
)
::
sms
...
...
@@ -791,18 +791,18 @@ module fabm_builtin_models
_
GET_HORIZONTAL_
(
self
%
id_sms
,
sms
)
_
SET_SURFACE_ODE_
(
self
%
id_target
,
sms
*
self
%
scale_factor
)
_
HORIZONTAL_LOOP_END_
end
subroutine
surface_
flux
_copier_do_surface
end
subroutine
surface_
source
_copier_do_surface
subroutine
bottom_
flux
_copier_initialize
(
self
,
configunit
)
class
(
type_bottom_
flux
_copier
),
intent
(
inout
),
target
::
self
integer
,
intent
(
in
)
::
configunit
subroutine
bottom_
source
_copier_initialize
(
self
,
configunit
)
class
(
type_bottom_
source
_copier
),
intent
(
inout
),
target
::
self
integer
,
intent
(
in
)
::
configunit
call
self
%
register_state_dependency
(
self
%
id_target
,
'target'
,
''
,
'target variable'
)
call
self
%
register_dependency
(
self
%
id_sms
,
'sms'
,
''
,
'sources minus sinks'
)
end
subroutine
bottom_
flux
_copier_initialize
end
subroutine
bottom_
source
_copier_initialize
subroutine
bottom_
flux
_copier_do_bottom
(
self
,
_
ARGUMENTS_DO_BOTTOM_
)
class
(
type_bottom_
flux
_copier
),
intent
(
in
)
::
self
subroutine
bottom_
source
_copier_do_bottom
(
self
,
_
ARGUMENTS_DO_BOTTOM_
)
class
(
type_bottom_
source
_copier
),
intent
(
in
)
::
self
_
DECLARE_ARGUMENTS_DO_BOTTOM_
real
(
rk
)
::
sms
...
...
@@ -811,6 +811,6 @@ module fabm_builtin_models
_
GET_HORIZONTAL_
(
self
%
id_sms
,
sms
)
_
SET_BOTTOM_ODE_
(
self
%
id_target
,
sms
*
self
%
scale_factor
)
_
HORIZONTAL_LOOP_END_
end
subroutine
bottom_
flux
_copier_do_bottom
end
subroutine
bottom_
source
_copier_do_bottom
end
module
fabm_builtin_models
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment