AMROC Main     Blockstructured Adaptive Mesh Refinement in object-oriented C++


Main Page   Class Hierarchy   Compound List   File List  

ClpFunctions1.h File Reference

Interface-header to Clawpack functions and AMR routines in Fortran. More...

Go to the source code of this file.

Defines

#define f_initial   FORTRAN_NAME(ic_, IC, ic)
 Problem-dependent: Implements initial-conditions. More...

#define f_init_common   FORTRAN_NAME(combl_, COMBL, combl)
 Problem-dependent: Initialize user-defined common blocks. More...

#define f_boundary   FORTRAN_NAME(physbd_, PHYSBD, physbd)
 Problem-dependent: Implements boundary-conditions. More...

#define SOURCE_PARAMETER_LIST
#define f_source   FORTRAN_NAME(src_, SRC, src)
 Problem-dependent: Implements source term for a fractional-step method. More...

#define SETAUX_PARAMETER_LIST
#define f_setaux   FORTRAN_NAME(setaux_, SETAUX, setaux)
 Problem-dependent: Set values in auxiliary array. More...

#define NORMAL_FUNC_PARAMETER_LIST
#define CHECK_FUNC_PARAMETER_LIST
#define f_step   FORTRAN_NAME(step1_, STEP1, step1)
 The main solution routine. More...

#define f_init_rcommon   FORTRAN_NAME(rcombl_, RCOMBL, rcombl)
#define f_restrict_amr   FORTRAN_NAME(restrict1_, RESTRICT1, restrict1)
#define f_prolong_amr   FORTRAN_NAME(prolong1_, PROLONG1, prolong1)
#define f_init_opcommon   FORTRAN_NAME(opcombl_, OPCOMBL, opcombl)
#define f_rcflx   FORTRAN_NAME(rcflx_, RCFLX, rcflx)

Typedefs

typedef void(* source_func_type )(const INTEGER &maxmx, const INTEGER &meqn, const INTEGER &mbc, const INTEGER &ibx, const INTEGER &mx, Vector_type q[], const DOUBLE aux[], const INTEGER &maux, const DOUBLE &t, const DOUBLE &dt, const INTEGER &ibnd)
typedef void(* setaux_func_type )(const INTEGER &maxmx, const INTEGER &meqn, const INTEGER &mbc, const INTEGER &ibx, const INTEGER &mx, Vector_type q[], DOUBLE aux[], const INTEGER &maux, const DOUBLE &cornx, const DOUBLE &dx, const DOUBLE &t, const DOUBLE &dt)
typedef void(* normal_func_type )(const INTEGER &maxmx, const INTEGER &meqn, const INTEGER &mwaves, const INTEGER &mbc, const INTEGER &mx, const DOUBLE ql[], const DOUBLE qr[], const INTEGER &maux, const DOUBLE auxl[], const DOUBLE auxr[], DOUBLE wave[], DOUBLE s[], DOUBLE amdq[], DOUBLE apdq[])

Functions

void FORTRAN_NAME (ic_, IC, ic)(const INTEGER &maxmx, const INTEGER &meqn, const INTEGER &mbc, const INTEGER &mx, const DOUBLE x[], const DOUBLE &dx, Vector_type q[])
void FORTRAN_NAME (combl_, COMBL, combl)()
void FORTRAN_NAME (physbd_, PHYSBD, physbd)(FI(1, Vector_type), BI, const DOUBLE *, const DOUBLE *, const INTEGER *, const DOUBLE *, const INTEGER *, const DOUBLE *, char *, const INTEGER *)
void FORTRAN_NAME (src_, SRC, src)(const INTEGER &maxmx, const INTEGER &meqn, const INTEGER &mbc, const INTEGER &ibx, const INTEGER &mx, Vector_type q[], const DOUBLE aux[], const INTEGER &maux, const DOUBLE &t, const DOUBLE &dt, const INTEGER &ibnd)
void FORTRAN_NAME (rcombl_, RCOMBL, rcombl)(const DOUBLE &t, const DOUBLE &dt, const DOUBLE &dx, const INTEGER &mpass)
void FORTRAN_NAME (restrict1_, RESTRICT1, restrict1)(FI(1, Vector_type), FI(1, Vector_type), BI, char *, INTEGER *)
void FORTRAN_NAME (prolong1_, PROLONG1, prolong1)(FI(1, Vector_type), FI(1, Vector_type), BI, char *, INTEGER *)
void FORTRAN_NAME (opcombl_, OPCOMBL, opcombl)(const INTEGER &gc)


Detailed Description

Interface-header to Clawpack functions and AMR routines in Fortran.

Author:
Ralf Deiterding
Version:
1.0
Date:
Jan-2002

Definition in file ClpFunctions1.h.


Define Documentation

#define CHECK_FUNC_PARAMETER_LIST
 

Value:

( \
   FI(1,Vector_type), BI, const INTEGER& meqn, INTEGER& result )

Definition at line 138 of file ClpFunctions1.h.

#define f_boundary   FORTRAN_NAME(physbd_, PHYSBD, physbd)
 

Problem-dependent: Implements boundary-conditions.

Parameters:
u.  Array of VectorType. The data.
mx, my  integer. Size of data array.
lb  integer[1]. Lower bound of data in index coordinates.
ub  integer[1]. Upper bound of data in index coordinates.
lbbnd  integer[1]. Lower bound of boundary region in index coordinates.
ubbnd  integer[1]. Upper bound of boundary region in index coordinates.
shapebnd  integer[1]. Shape of boundary region.
xc  double[1]. Geometric information of lower left corner of data.
dx  double[1]. Cell size.
dir  integer. Side of data grid of actual boundary.
bnd  double array. Geometric information of mb boundary regions.
mb  integer[mb][2][1]. Number of boundary regions. The first one is the geometry of the global grid. mb-1 internal boundary regions follow.
time  double. Actual time.
args  char[]. Auxiliary array for passing additional information. Used for number of components.
argc  integer. Number of entries in auxiliary array args.

Definition at line 60 of file ClpFunctions1.h.

#define f_init_common   FORTRAN_NAME(combl_, COMBL, combl)
 

Problem-dependent: Initialize user-defined common blocks.

Returns:
void.

Definition at line 36 of file ClpFunctions1.h.

#define f_initial   FORTRAN_NAME(ic_, IC, ic)
 

Problem-dependent: Implements initial-conditions.

Parameters:
maxmx  integer. ize of data array.
meqn  integer. Number of components in VectorType.
mbc  integer. Ghost cell width.
mx  integer. Size of data array used for computation.
x  double array.
dx  double.
q.  Array of VectorType.
Returns:
void.

Definition at line 22 of file ClpFunctions1.h.

#define f_setaux   FORTRAN_NAME(setaux_, SETAUX, setaux)
 

Problem-dependent: Set values in auxiliary array.

Parameters:
maxmx  integer. Size of data array.
meqn  integer. Number of components in VectorType.
mbc  integer. Ghost cell width.
ibx  integer. Consider ghost cells (0/1) when dimensioning the data array.
mx  integer.
q.  Array of VectorType.
aux  double array. Auxiliary data.
maux  integer. Number of components in aux array.
cornx  double. Geometric coordinates of lower left corner.
dx  double. Cell size.
t  double. Actual time.
dt  double. Actual time-step.
Returns:
void.

Definition at line 124 of file ClpFunctions1.h.

#define f_source   FORTRAN_NAME(src_, SRC, src)
 

Problem-dependent: Implements source term for a fractional-step method.

Parameters:
maxmx  integer. Size of data array.
meqn  integer. Number of components in VectorType.
mbc  integer. Ghost cell width.
ibx  integer. Consider ghost cells (0/1) for dimensioning the data array.
mx  integer.
q.  Array of VectorType.
aux  double array. Auxiliary data.
maux  integer. Number of components in aux array.
t  double. Actual time.
dt  double. Actual time-step.
ibnd  integer[1]. Skip the update of ghost cells (0/1).
Returns:
void.

Definition at line 92 of file ClpFunctions1.h.

#define f_step   FORTRAN_NAME(step1_, STEP1, step1)
 

The main solution routine.

Parameters:
maxmx  integer. Size of data array.
mvar  integer. Number of components really used in Riemann solver.
meqn  integer. Number of components in VectorType.
maux  integer. Number of auxiliary components.
mwaves  integer. Number of waves used in Riemann solver.
mbc  integer. Ghost cell width.
mx  integer. Size of data array used for computation.
qold  array of VectorType. On input: The data of the old time-step. On Output: The updated data.
aux  double array. The auxiliary data.
dx  double. Size of cell.
dt  Size of time-step.
method  integer[7] array. Defines the numerical method.
mthlim  integer[mwaves] array. Choice of limiters.
cfl  double. Returns the CFL-number.
fm, fp  arrays of VectorType. Returns the fluctuations or fluxes.
wave, s, amdq, apdq, dtdx, aux1, q1, work  double arrays passed to solution routine and Riemann solver.
mwork  integer. Size of work.
rpn  function of normal_func_type. Riemann solver in normal direction.
Returns:
void.

Definition at line 163 of file ClpFunctions1.h.

#define NORMAL_FUNC_PARAMETER_LIST
 

Value:

( \
   const INTEGER& maxmx, const INTEGER& meqn, \
   const INTEGER& mwaves, const INTEGER& mbc, const INTEGER& mx, \
   const DOUBLE ql[], const DOUBLE qr[], \
   const INTEGER& maux, const DOUBLE auxl[], const DOUBLE auxr[], \
   DOUBLE wave[], DOUBLE s[], \
   DOUBLE amdq[], DOUBLE apdq[] )

Definition at line 129 of file ClpFunctions1.h.

#define SETAUX_PARAMETER_LIST
 

Value:

( \
   const INTEGER& maxmx, \
   const INTEGER& meqn, const INTEGER& mbc, \
   const INTEGER& ibx, \
   const INTEGER& mx, Vector_type q[], \
   DOUBLE aux[], const INTEGER& maux, \
   const DOUBLE& cornx, \
   const DOUBLE& dx, \
   const DOUBLE& t, const DOUBLE& dt)

Definition at line 97 of file ClpFunctions1.h.

#define SOURCE_PARAMETER_LIST
 

Value:

( \
   const INTEGER& maxmx, \
   const INTEGER& meqn, const INTEGER& mbc, \
   const INTEGER& ibx, \
   const INTEGER& mx, Vector_type q[], \
   const DOUBLE aux[], const INTEGER& maux, \
   const DOUBLE& t, const DOUBLE& dt, const INTEGER& ibnd)

Definition at line 68 of file ClpFunctions1.h.


Quickstart     Users Guide     Programmers Reference     Installation      Examples     Download



AMROC Main      Home      Contact
last update: 06/01/04