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

◆ sums()

Tcarray f77interface::sums ( )

read from common block through Fortran subroutine

returns results from Fortran subroutine sums

The Fortran subroutine sums calculates column-sums from the array in the common block. These values are return in an

object.

The concept is discussed on page "\ref page_fortran".

Examples:
tests/f77test.cc.

Definition at line 119 of file f77interface.cc.

References aff::FortranArray< C >::castedpointer(), and aff::subarray().

Referenced by main().

120 {
121  typedef Tcarray::Tvalue Tcvalue;
122  // prepare array that is large enough
123  integer maxa,maxb;
124  comdim_(&maxa, &maxb);
125  Tcarray result(maxa);
126  // prepare Fortran view
127  aff::FortranArray<Tcarray> fa(result);
128  complex* p=fa.castedpointer<complex>();
129  integer size;
130  sums_(p, &maxa, &size);
131  return(aff::subarray(result)(size));
132 }
aff::util::Subarray< C > subarray(const C &c)
Wrapper function to select correct type.
Definition: subarray.h:163
aff::Array< std::complex< float > > Tcarray
Definition: f77proto.h:58
Class to provide Fortran interface values.
Definition: fortranshape.h:107
Here is the call graph for this function:
Here is the caller graph for this function: