Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Summa Actors
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Numerical_Simulations_Lab
Actors
Summa Actors
Commits
eff939bd
Commit
eff939bd
authored
2 years ago
by
Kyle Klenk
Browse files
Options
Downloads
Patches
Plain Diff
removed setupParam from cppwrap_hru.f90
parent
7a421f47
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/source/actors/hru_actor/cppwrap_hru.f90
+1
-88
1 addition, 88 deletions
build/source/actors/hru_actor/cppwrap_hru.f90
with
1 addition
and
88 deletions
build/source/actors/hru_actor/cppwrap_hru.f90
+
1
−
88
View file @
eff939bd
...
...
@@ -8,7 +8,7 @@ USE globalData
implicit
none
! public::Initialize ! This is called Directly by the actors code
! The above is here just in case I look here again
public
::
SetupParam
!
public::SetupParam
! This is now called directly by the actors code as setupHRUParam
public
::
Restart
public
::
Forcing
public
::
RunPhysics
...
...
@@ -17,94 +17,7 @@ public::Write_Param_C
contains
! **********************************************************************************************************
! public subroutine SetupParam: initializes parameter data structures (e.g. vegetation and soil parameters).
! **********************************************************************************************************
subroutine
SetupParam
(&
indxGRU
,
&
! Index of the parent GRU of the HRU
indxHRU
,
&
! ID to get the correct HRU data
! primary data structures (scalars)
handle_attrStruct
,
&
! local attributes for each HRU
handle_typeStruct
,
&
! local classification of soil veg etc. for each HRU
handle_idStruct
,
&
! local classification of soil veg etc. for each HRU
! primary data structures (variable length vectors)
handle_mparStruct
,
&
! model parameters
handle_bparStruct
,
&
! basin-average parameters
handle_bvarStruct
,
&
! basin-average variables
handle_dparStruct
,
&
! default model parameters
! local HRU data
handle_startTime
,
&
! start time for the model simulation
handle_oldTime
,
&
! time for the previous model time step
! miscellaneous variables
upArea
,
&
! area upslope of each HRU,
err
)
bind
(
C
,
name
=
'SetupParam'
)
! USE SummaActors_setup,only:SummaActors_paramSetup
implicit
none
! calling variables
integer
(
c_int
),
intent
(
in
)
::
indxGRU
! Index of the parent GRU of the HRU
integer
(
c_int
),
intent
(
in
)
::
indxHRU
! ID to locate correct HRU from netcdf file
type
(
c_ptr
),
intent
(
in
),
value
::
handle_attrStruct
! local attributes for each HRU
type
(
c_ptr
),
intent
(
in
),
value
::
handle_typeStruct
! local classification of soil veg etc. for each HRU
type
(
c_ptr
),
intent
(
in
),
value
::
handle_idStruct
!
type
(
c_ptr
),
intent
(
in
),
value
::
handle_mparStruct
! model parameters
type
(
c_ptr
),
intent
(
in
),
value
::
handle_bparStruct
! basin-average parameters
type
(
c_ptr
),
intent
(
in
),
value
::
handle_bvarStruct
! basin-average variables
type
(
c_ptr
),
intent
(
in
),
value
::
handle_dparStruct
! default model parameters
type
(
c_ptr
),
intent
(
in
),
value
::
handle_startTime
! start time for the model simulation
type
(
c_ptr
),
intent
(
in
),
value
::
handle_oldTime
! time for the previous model time step
real
(
c_double
),
intent
(
inout
)
::
upArea
integer
(
c_int
),
intent
(
inout
)
::
err
!---------------------------------------------------------------------------------------------------
! local variables
type
(
var_d
),
pointer
::
attrStruct
! local attributes for each HRU
type
(
var_i
),
pointer
::
typeStruct
! local classification of soil veg etc. for each HRU
type
(
var_i8
),
pointer
::
idStruct
!
type
(
var_dlength
),
pointer
::
mparStruct
! model parameters
type
(
var_d
),
pointer
::
bparStruct
! basin-average parameters
type
(
var_dlength
),
pointer
::
bvarStruct
! basin-average variables
type
(
var_d
),
pointer
::
dparStruct
! default model parameters
type
(
var_i
),
pointer
::
startTime
! start time for the model simulation
type
(
var_i
),
pointer
::
oldTime
! time for the previous model time step
character
(
len
=
256
)
::
message
! getting data
call
c_f_pointer
(
handle_attrStruct
,
attrStruct
)
call
c_f_pointer
(
handle_typeStruct
,
typeStruct
)
call
c_f_pointer
(
handle_idStruct
,
idStruct
)
call
c_f_pointer
(
handle_mparStruct
,
mparStruct
)
call
c_f_pointer
(
handle_bparStruct
,
bparStruct
)
call
c_f_pointer
(
handle_bvarStruct
,
bvarStruct
)
call
c_f_pointer
(
handle_dparStruct
,
dparStruct
)
call
c_f_pointer
(
handle_startTime
,
startTime
)
call
c_f_pointer
(
handle_oldTime
,
oldTime
)
! call SummaActors_paramSetup(&
! indxHRU, & ! ID of hru to obtain from netcdf file
! indxGRU, & ! Index of the parent GRU of the HRU
! ! primary data structures (scalars)
! attrStruct, & ! local attributes for each HRU
! typeStruct, & ! local classification of soil veg etc. for each HRU
! idStruct, & ! local classification of soil veg etc. for each HRU
! ! primary data structures (variable length vectors)
! mparStruct, & ! model parameters
! bparStruct, & ! basin-average parameters
! bvarStruct, & ! basin-average variables
! dparStruct, & ! default model parameters
! ! local HRU data
! startTime, & ! start time for the model simulation
! oldTime, & ! time for the previous model time step
! ! miscellaneous variables
! upArea, & ! area upslope of each HRU,
! err, message)
! if(err/=0)then
! message=trim(message)
! print*, message
! endif
end
subroutine
SetupParam
! **********************************************************************************************************
! public subroutine Restart:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment