AFF --- A container for numbers (array) by Friederich and Forbriger.

◆ fill()

int f77interface::fill ( const aff::Array< int > &  fa)

interface function to Fortran77 subroutine fill

fill an AFF array thorugh a Fortran subroutine

An aff::Array<int> object is passed to the Fortran subroutine fill and is filled with values there. The concept is discussed on page "\ref page_fortran".

Examples:
tests/f77test.cc.

Definition at line 89 of file f77interface.cc.

References aff::FortranArray< C >::castedpointer(), aff::util::FortranShape::dimlast(), and aff::util::FortranShape::last().

Referenced by main().

90 {
92  integer* pa=fa.castedpointer<integer>();
93  integer n1=fa.last(0);
94  integer n2=fa.last(1);
95  integer n3=fa.last(2);
96  integer l1=fa.dimlast(0);
97  integer l2=fa.dimlast(1);
98  integer l3=fa.dimlast(2);
99  return(fill_(pa, &l1, &n1, &l2, &n2, &l3, &n3));
100 }
Class to provide Fortran interface values.
Definition: fortranshape.h:107
const Tsubscript & last(const Tsubscript &i) const
last index of dimension
Definition: strided.h:197
Here is the call graph for this function:
Here is the caller graph for this function: