REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
REMORA_FennelBridge.cpp File Reference
#include <AMReX_MultiFab.H>
#include <REMORA.H>
#include <REMORA_Biology.H>
#include <REMORA_Constants.H>
#include "REMORA_Fennel_Fortran_Interface.H"
Include dependency graph for REMORA_FennelBridge.cpp:

Go to the source code of this file.

Detailed Description

Path A of the Fennel parity campaign: pack REMORA state into ROMS-shaped buffers, call the unmodified ROMS kernel through the isohelper, and unpack the result. Selected at run time by remora.use_biology_cpp_answer = 0.

The pack/unpack boundary is deliberately explicit rather than aliasing FArrayBox memory: REMORA FABs carry ghost cells and index k from 0 at the bottom, while ROMS wants a contiguous 1-based k over the valid region. An explicit copy keeps both paths auditable and immune to ghost-layout surprises, at a cost that is irrelevant for validation runs.

See Source/Biology/Fortran/tag_map.md for the diagnostic contract.

Definition in file REMORA_FennelBridge.cpp.