-
Notifications
You must be signed in to change notification settings - Fork 87
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
NetCDF Topography Integer kind
Declaration Issues
#489
Comments
@bolliger32 I think you were the last one to put some of these in because of some memory issues. Do you remember if you found a specification as to what the NetCDF functions were using by default or were they not explicitly "kinded"? |
oof I wish I remembered when I put those in. This is the NetCDF function reference I was using at the time. A quick glance makes it look like they are not explicitly kinded? |
That's what I was worried about, it does not appear that they define a kind for their integers so that when we force ours to become |
well...either that or the fact that I am a fortran beginner and was just trying to be as explicit as possible...do you have an example line in particular? Might trigger my memory |
I am not seeing it off hand in my own email but I thought at some point you were talking about a segfaults but I could be thinking of something else, maybe something to do with storm objects. If NetCDF is not expecting an explicit type of integer kind then it's probably best anyway to leave these integers also to be generic to match in any case. |
Well it looks like at least for me my compiled version of the NetCDF library has defaulted to |
I was dealing with some segfault issues but I don't think that had to do with explicit "kinding" of integers. I think that was all a separate issue |
What my suggestion then to do is to define a variable for all NetCDF integer kinds, say |
When attempting to force the default integers in geoclaw to become
kind=8
rather thankind=4
(e.g.-fdefault-integer-8
) for memory reasons someone ran into the problem that some of the NetCDF code has some explicit declarations that ended up being incompatible with this. We just need to make sure that the explicitly defined integers intopo_module
are defined consistently. A quick glance makes this look like it is not entirely trivial as the NetCDF module itself does not seem to define this entirely explicitly.The text was updated successfully, but these errors were encountered: