namespace rtm


forward

forward overload (1)

#include "rtm3d/rtmforward.hpp"
template <
    int t_NumFSMs,
    typename t_DataType,
    typename t_InType,
    typename t_UpbType,
    typename t_RTM,
    typename t_Domain
    >
void forward (
    bool p_sel,
    const t_Domain& p_domain,
    t_RTM p_sm [t_NumFSMs],
    const unsigned int p_t,
    const t_DataType* p_src,
    const t_InType* p_v2dt2,
    t_InType* p_pi0,
    t_InType* p_pi1,
    t_InType* p_po0,
    t_InType* p_po1,
    t_InType* p_ppi0,
    t_InType* p_ppi1,
    t_InType* p_ppo0,
    t_InType* p_ppo1,
    t_UpbType* p_upb
    )

forward function is composed by multiple forward streaming modules

Parameters:

p_sel determins the port id to read or write
p_domain the domain partition object
p_sm an array of streaming module objects
p_t the start time step in the current process
p_src the source wavefiled
p_v2dt2 the velocity model v^2 * dt^2
p_pi0 the first input memory of pressure wavefield at t-1
p_pi1 the second input memory of pressure wavefield at t-1
p_po0 the first output memory of pressure wavefield at t-1
p_po1 the second output memory of pressure wavefield at t-1
p_ppi0 the first input memory of pressure wavefield at t-2
p_ppi1 the second input memory of pressure wavefield at t-2
p_ppo0 the first output memory of pressure wavefield at t-2
p_ppo1 the second output memory of pressure wavefield at t-2
p_upb the memory to store the upper-boundary data

forward overload (2)

#include "rtm3d/rtmforward.hpp"
template <
    int t_NumFSMs,
    typename t_DataType,
    typename t_InType,
    typename t_RTM,
    typename t_Domain
    >
void forward (
    bool p_sel,
    const t_Domain& p_domain,
    t_RTM p_sm [t_NumFSMs],
    const t_DataType* p_src,
    const t_InType* p_v2dt2,
    t_InType* p_pi0,
    t_InType* p_pi1,
    t_InType* p_po0,
    t_InType* p_po1,
    t_InType* p_ppi0,
    t_InType* p_ppi1,
    t_InType* p_ppo0,
    t_InType* p_ppo1
    )

forward function composed by multiple forward streaming modules

Parameters:

p_sel determins the port id to read or write
p_domain the domain partition object
p_sm an array of streaming module objects
p_src the source wavefiled
p_v2dt2 the velocity model v^2 * dt^2
p_pi0 the first input memory of pressure wavefield at t-1
p_pi1 the second input memory of pressure wavefield at t-1
p_po0 the first output memory of pressure wavefield at t-1
p_po1 the second output memory of pressure wavefield at t-1
p_ppi0 the first input memory of pressure wavefield at t-2
p_ppi1 the second input memory of pressure wavefield at t-2
p_ppo0 the first output memory of pressure wavefield at t-2
p_ppo1 the second output memory of pressure wavefield at t-2