Closed JamieJQuinn closed 2 months ago
Ah yes, it makes some sense. If you have a class
, because it could be of any extended type of this class, you need to explicitly allocate it to the right type
. Because here we only have a single type
for this class
, I believe the other compilers make the assumption that's the one we want to allocate.
Changing to type
makes it unambiguous.
After compiling with
nvfortran
, the code would fail during runtime with the following error:The compilation and run steps on Sylvain's Kolmogorov machine are:
This PR removes the
allocatable
attribute onmesh
and changes bothmesh
and its containedgeo
andpar
members totype
instead ofclass
. I'm don't know this feature of Fortran well enough to explain why this works but it fixes the problem...Additional nonsense: The unit test that uses the same pattern or allocatable + class passes fine. No idea why.