MeDiPack  1.3.0
A Message Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
tutorial2.cpp File Reference
#include <medi/medi.hpp>
#include <codi.hpp>
#include <codi/tools/mpi/codiMpiTypes.hpp>
#include <iostream>
Include dependency graph for tutorial2.cpp:

Classes

struct  Residuals
 

Typedefs

using MpiTool = MpiTypes::Tool
 
using MpiTypes = codi::CoDiMpiTypes<codi::RealReverse>
 

Functions

void customOperator ()
 
void customOpp (Residuals *invec, Residuals *inoutvec, int *len, MPI_Datatype *datatype)
 
int main (int nargs, char **args)
 
void modifiedCustomOpp (Residuals *invec, Residuals *inoutvec, int *len, MPI_Datatype *datatype)
 
void optimizedCustomOperator ()
 
void postAdjResidual (double *adjoints, double *primals, double *rootPrimals, int count)
 

Variables

MpiTypesmpiTypes
 

Typedef Documentation

◆ MpiTool

using MpiTool = MpiTypes::Tool

◆ MpiTypes

using MpiTypes = codi::CoDiMpiTypes<codi::RealReverse>

Function Documentation

◆ customOperator()

void customOperator ( )

◆ customOpp()

void customOpp ( Residuals * invec,
Residuals * inoutvec,
int * len,
MPI_Datatype * datatype )

◆ main()

int main ( int nargs,
char ** args )

◆ modifiedCustomOpp()

void modifiedCustomOpp ( Residuals * invec,
Residuals * inoutvec,
int * len,
MPI_Datatype * datatype )

◆ optimizedCustomOperator()

void optimizedCustomOperator ( )

◆ postAdjResidual()

void postAdjResidual ( double * adjoints,
double * primals,
double * rootPrimals,
int count )

Variable Documentation

◆ mpiTypes

MpiTypes* mpiTypes