You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@TestCase
type, extends(TestDustEmisBase) :: TestDustEmisZender2003
type(dust_type) :: dust_emis
contains
procedure :: validate_patch
end type TestDustEmisZender2003
I started this with everything in the extended class and that works fine. It's when I tried to make a base class that it appears that the base class methods don't seem to do anything. So I've got it building, linking and running, but the base methods in the base class don't seem to do anything.
To get it to build I had to have the base class a .F90 file rather than .pf
The text was updated successfully, but these errors were encountered:
The workaround I'm going to go to is to have the baseclass as a separate object to handle the input for the objects that I want to have different tests for. So this still doesn't require code duplication, it's just not quite as slick as using an OO base class for both.
I am sorry for the delay in responding. Lots of travel (and then catching up).
I'm not sure that I understand what your particular failure is.
I started this with everything in the extended class and that works fine. It's when I tried to make a base class that it appears that the base class methods don't seem to do anything. So I've got it building, linking and running, but the base methods in the base class don't seem to do anything.
Can you elaborate? How did you invoke the base class methods? Did they return without executing your code?
The CMake issue is presumably separate so let's deal with that once you've got something in true Fortran working.
I wanted to have a base class that I extend so I can test different types that themselves extends a base class into two specific
So the base class has this structure...
test_DustEmisBase.F90:
And the extended class looks like this:
test_DustEmisZender2024.pf
I started this with everything in the extended class and that works fine. It's when I tried to make a base class that it appears that the base class methods don't seem to do anything. So I've got it building, linking and running, but the base methods in the base class don't seem to do anything.
To get it to build I had to have the base class a .F90 file rather than .pf
The text was updated successfully, but these errors were encountered: