libftsh
A Fast Transform for Spherical Harmonics
 All Data Structures Files Functions Variables Defines
Defines | Functions
init_Pm_1d_workspace.c File Reference

Initialize workspace for the transform. More...

#include "libftsh.h"

Defines

#define ENTEREXIT   0

Functions

void init_Pm_1d_workspace (Pm_1D_Workspace *out, int numpts, int band_limit, REAL *node, REAL *weight)

Detailed Description

Initialize workspace for the transform.


Function Documentation

void init_Pm_1d_workspace ( Pm_1D_Workspace out,
int  numpts,
int  band_limit,
REAL node,
REAL weight 
)

This routine initializes a structure Pmncos_1D_Workspace, which is used to hold workspace and a few precomputed values for use in the synthesis/analysis routines.

INPUTS:

  • numpts -- the number of points in the interval (number of latitudes) used here to determine memory needed.
  • band_limit -- the limit on the degree of the expansion. Used here to determine the maximal number of coefficients possible for one order.
  • node -- an array of numpts REALs specifying the discretization. Usually this will be gaussian nodes.
  • weight -- an array of numpts REALs specifying the quadrature weight. Usually this will be gaussian weight.

OUTPUT: out -- memory is allocated for the fields of out, and some values are precomputed.

NOTE:

  • probably should pack the memory together

Here is the call graph for this function:

Here is the caller graph for this function: