-
Notifications
You must be signed in to change notification settings - Fork 19
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
MAPL_Config bug with GNU and GOCART2G #951
Comments
This issue has been automatically marked as stale because it has not had recent activity. If there are no updates within 7 days, it will be closed. You can add the "long term" tag to prevent the Stale bot from closing this issue. |
Closing due to inactivity |
This issue is not yet resolved ... |
Can't we just make the buffer |
@tclune Yes we can, but this would limit the size of the "vector" to size(buffer)/32. I was trying use the least amount to have more possible entries... We can talk about it on Monday |
If len=16 works for both compilers, this would be my preferred choice. We are trying to phase out the ESMF_Config, and there is no good reason to make it perfect just before before we switch to YAML |
Note, I did some testing with Atanas and it turns out the magic numbers are:
18 is ugly, but GNU is weird? |
@atrayano Are you okay with this being 18 characters as that's the GNU magic number? |
If not, I can work with you to convert this to a deferred length string where we explicitly allocate to a length long enough to contain whatever needs to go in. |
…internal_write_size Fixes #951. Adjusted the size for the internal write buffer
Fixed in #1164 |
I was trying to run GOCART2G with GNU and I found a bug in MAPL. To wit, when you run you get:
which points to
MAPL_ConfigSetAttribute_reals32
a function added by @atrayano:MAPL/base/MAPL_Config.F90
Lines 649 to 664 in d500930
The issue seems to be with the 'magic number' 15. If you make a small little Fortran program:
This works with Intel:
but fails with GNU:
So there are a couple of things. One, it looks like Intel is doing
F11.4
so we could change:MAPL/base/MAPL_Config.F90
Line 659 in d500930
to:
If so, we'd also probably want to look at the magic number in the int-vector case:
MAPL/base/MAPL_Config.F90
Line 616 in d500930
and maybe do:
??
Perhaps also, we should have unit tests for this in
base/tests/Test_MAPL_Config.pf
which only has a test for string:MAPL/base/tests/Test_MAPL_Config.pf
Lines 8 to 9 in d500930
Not sure. @tclune might wish to weigh in.
The text was updated successfully, but these errors were encountered: