fes_debugCalculate: Enables debug print statements showing the calculation flow...

Description Usage Arguments Value Examples

View source: R/Rfes2014.R

Description

Enables debug print statements showing the calculation flow of Rfes2014

Usage

1

Arguments

enable

logical; TRUE to enable, FALSE to disable

Value

None

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## Not run: 
fes_debug(TRUE)
hdl <- fes_new("ocean", "memory", "data/fes2014/eastward_velocity.ini")
fes_calculate(hdl, 50.10, -2.40, 1570536000)
# UseMethod Type: double
# Using generic: fes_calculate.double
# Calculating for: 50.100000 -2.400000 25482.500000
# Result: -24.965188 0.210749 4
# Calculating for: 50.100000 -2.400000 25482.500000
# Result: -24.965188 0.210749 4
fes_delete(hdl)

## End(Not run)

## Not run: 
fes_debug(TRUE)
hdl <- fes_new("ocean", "memory", "data/fes2014/eastward_velocity.ini")
fes_calculate(hdl, c(50.10, 50.10), c(-2.50, -2.40), c(1570536000, 1570536000))
# UseMethod Type: double; Class: numeric; Length: 3
# Using generic: fes_calculate.list
# Processing 2 rows
#   [0] Calculating for: 50.100000 -2.500000 25482.500000
#   [0] Result: -22.001810 0.227711 4
#   [1] Calculating for: 50.100000 -2.400000 25482.500000
#   [1] Result: -24.965188 0.210749 4
fes_delete(hdl)

## End(Not run)

avsdev-cw/Rfes2014 documentation built on Nov. 3, 2019, 2:04 p.m.