Skip to content

Conversation

@amstokely
Copy link
Contributor

@amstokely amstokely commented Nov 6, 2025

This PR adds an optional argument to mpas_init for supplying a user-defined callback that executes after stream manager initialization. The user provides an instance of a derived type that extends the abstract base type stream_update_callback_type. To satisfy the interface, the derived type must implement a procedure with the signature:

subroutine stream_update_callback(self, manager, ierr)
   class(stream_update_callback_type), intent(inout) :: self
   type(MPAS_streamManager_type), intent(inout) :: manager
   integer, optional, intent(out) :: ierr
end subroutine stream_update_callback

This mechanism allows users to inject custom stream modification or update logic during initialization without altering the core stream-processing code. These are the MPAS-specific changes needed to resolve issue #1373.

@amstokely amstokely changed the base branch from master to develop November 6, 2025 00:05
Andy Stokely added 2 commits November 11, 2025 17:20
… This makes the derived type more generic and avoids using error prone, typeless constructs.
@amstokely amstokely marked this pull request as ready for review November 12, 2025 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant