Skip to content

Add missing lookup_winds functionsAdd missing lookup_winds functions from ramtares_main - #119

Draft
Minsoo-Kang-space wants to merge 1 commit into
mainfrom
environment-atmos-atmosphere_models-DRWP_atmos
Draft

Minsoo-Kang-space wants to merge 1 commit into
mainfrom
environment-atmos-atmosphere_models-DRWP_atmos

Conversation

@Minsoo-Kang-space

Copy link
Copy Markdown
Contributor

[Add missing lookup_winds functions]

Comment on lines +222 to +225
void compute_average_wind_interp( size_t table_index,
double min_altitude=0,
double max_altitude=0,
double altitude_incr=0);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default arguments for this don't make sense. An altitude increment of zero would never be useful and it's the last argument, so we always need to specify values for every argument. It would also result in a divide-by-zero in the function itself since there's no protection against that case.


/****************************************************************************/
void
LookupAtmosWinds::compute_average_wind_interp(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is major new functionality that needs to be tested and documented before being merged.

// Leave average at zero-vector
return;
}
size_t num_alts = (max_alt_ - min_alt_) / step_alt + 1;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs divide-by-zero protection.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants