USDA-ARS-NWRC / smrf

SMRF was designed to increase the flexibility of taking measured weather data, or atmospheric models, and distributing the data across a watershed.
Other
12 stars 4 forks source link

Gridded interpolation speedup #92

Closed micah-prime closed 5 years ago

micah-prime commented 5 years ago

Description

This pull request includes the changes required to speedup the local gradient gridded interpolation method. The three main changes are:

The second change accounts for most, if not all of the speedup when using cubic interpolation. The first change has a larger effect when using linear interpolation. See Issue #91 for more details on timing.

Fixes #91

Type of change

How Has This Been Tested?

This change has been tested in 2 ways:

gradient_update_check

Test Configuration: Test A:

scotthavens commented 5 years ago

Should also note in the PR that the loadTopo was modified to provide an option to use threading when calculating gradient and viewf. As of now it is set to False meaning a slight slow down when SMRF initializes.

micah-prime commented 5 years ago

Added those changes to the original PR in the first section. Should we leave threading set to False?

scotthavens commented 5 years ago

We should probably just do it right and add it to the config in the topo section then update the PR.

micah-prime commented 5 years ago

@scotthavens sounds good. I'll do that in a minute

micah-prime commented 5 years ago

@scotthavens That is now added to the config file under ['topo][threading] with default being True. Took a little longer because this upset a check in the backup of the config file. Tests are running on Travic CI now.