We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Recently, in helping @briardew try various things to get his code working on SLES15, he pointed me to the CO code:
https://github.com/GEOS-ESM/GOCART/blob/76a694c11f0e69ace310139770094981732d1476/ESMF/GOCART_GridComp/CO_GridComp/CO_GridCompMod.F90#L777
which has that sort of code that was in PChem: A parallel read of a file that we converted to read-on-root-and-broadcast.
Well, I did the same sort of thing and one thing I did to be "smart" was convert:
length = SIZE(gcCO%sdat) CALL MPI_Bcast(gcCO%sdat, length, MPI_REAL, 0, comm, status) VERIFY_(status)
to:
length = SIZE(gcCO%sdat) CALL MAPL_CommsBcast(vm, gcCO%sdat, length, 0, comm, status) VERIFY_(status)
But that failed. Why? Well, gcCO%sdat is 4-d:
gcCO%sdat
REAL, POINTER :: sdat(:,:,:,:)
and a couple other of them are 3-d. And MAPL_CommsBcast is overloaded only to 2d:
MAPL/base/MAPL_Comms.F90
Lines 91 to 114 in c65548b
So I suppose my questions are:
The text was updated successfully, but these errors were encountered:
tclune
bena-nasa
atrayano
No branches or pull requests
Recently, in helping @briardew try various things to get his code working on SLES15, he pointed me to the CO code:
https://github.com/GEOS-ESM/GOCART/blob/76a694c11f0e69ace310139770094981732d1476/ESMF/GOCART_GridComp/CO_GridComp/CO_GridCompMod.F90#L777
which has that sort of code that was in PChem: A parallel read of a file that we converted to read-on-root-and-broadcast.
Well, I did the same sort of thing and one thing I did to be "smart" was convert:
to:
But that failed. Why? Well,
gcCO%sdat
is 4-d:and a couple other of them are 3-d. And MAPL_CommsBcast is overloaded only to 2d:
MAPL/base/MAPL_Comms.F90
Lines 91 to 114 in c65548b
So I suppose my questions are:
The text was updated successfully, but these errors were encountered: