Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
HYCAR-Hydro
airGR
Commits
a7caf404
Commit
a7caf404
authored
Oct 07, 2020
by
fbourgin
Browse files
UPDATE: Add test to check that the Fortran version works
parent
33b716f4
Pipeline
#16482
passed with stages
in 10 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/testthat/test-evap.R
0 → 100644
View file @
a7caf404
context
(
"Test evaporation"
)
test_that
(
"PEdaily_Oudin works"
,
{
skip_on_cran
()
rm
(
list
=
ls
())
data
(
L0123001
)
PotEvap
<-
PEdaily_Oudin
(
JD
=
as.POSIXlt
(
BasinObs
$
DatesR
)
$
yday
+
1
,
Temp
=
BasinObs
$
T
,
Lat
=
0.8
,
LatUnit
=
"rad"
)
PotEvapFor
<-
PEdaily_Oudin
(
JD
=
as.POSIXlt
(
BasinObs
$
DatesR
)
$
yday
+
1
,
Temp
=
BasinObs
$
T
,
Lat
=
0.8
,
LatUnit
=
"rad"
,
run_fortran
=
T
)
expect_true
(
all
(
range
(
PotEvap
-
PotEvapFor
)
<
0.001
))
})
Write
Preview
Markdown
is supported
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