Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use dynamic memory allocation for coordinate stoage? #526

Closed
karlmsmith opened this issue Nov 23, 2017 · 1 comment
Closed

Use dynamic memory allocation for coordinate stoage? #526

karlmsmith opened this issue Nov 23, 2017 · 1 comment

Comments

@karlmsmith
Copy link
Contributor

karlmsmith commented Nov 23, 2017

Reported by @AnsleyManke on 20 Jan 2005 20:53 UTC
The array line_mem stores irregularly-spaced coordinates for all lines, plus
their cell boundaries. (See bug 767). Does it make sense to use dynamic memory
allocation for this? The problem is that when we find we need more coordinate
storage, we need to keep existing coordinate data that may already have been
loaded. This is unlike pplus dynamic memory, where we allocate memory before
loading data and sending it to pplus, so any existing data can be wiped out by a
free command.

Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/1158

@karlmsmith
Copy link
Contributor Author

karlmsmith commented Nov 23, 2017

Comment by @AnsleyManke on 17 Feb 2005 18:11 UTC
No, this would require wiping out existing coordinates whenever we wanted to
allocate more storage...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant