Skip to content

Please add support for Serialization of Fortran classes, and subroutine arguments declared intent(in). #262

@robgpita

Description

@robgpita

The non-descriptive error message :

SENA-shallow-water/build/src/fortran/serialbox_pp/module_shallow_water_model.f90:341:74:

  341 |     call fs_read_field(ppser_serializer_ref, ppser_savepoint, 'b', this%b)
      |                                                                          1
Error: There is no specific subroutine for the generic 'fs_read_field' at (1)

Displays when trying to Serialize data as part of a Fortran class - class(shallow_water_model_type), intent( in) :: this.

As well as when trying to serialize data passed as Fortran subroutine arguments declared intent(in)

SENA-shallow-water/build/src/fortran/serialbox_pp/module_shallow_water_model.f90:344:73:

  344 |     call fs_read_field(ppser_serializer_ref, ppser_savepoint, 'xps', xps)
      |                                                                         1
Error: There is no specific subroutine for the generic 'fs_read_field' at (1)

Steps to Reproduce:
clone SENA-shallow-water repository
Insert Serialbox directives into subroutines adv_nsteps_model, update_interior_model, or update_boundaries_model (within module_shallow_water_model.f90)
Build the code following README.md or build.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions