#ident "@(#) MomentsDef.c 1.2 05/08/19 SwRI" #include "pidf_local.h" SDDAS_INT MomentsDefined (SDDAS_ULONG key, const SDDAS_CHAR *exten, SDDAS_INT *moments_defined) { SDDAS_FLOAT mom_mass; SDDAS_INT error_code; /* The Moments defined flag is determine based upon whether the moments structure */ /* exists. The MOMENTMASS component must be defined within the moments structure IF */ /* moments are defined. */ if ((error_code = ReadNewPidf (key, exten, MOMENTS, NOTUSED, NOTUSED, MOMENTMASS, &mom_mass)) != ALL_OKAY) *moments_defined = 0; else *moments_defined = 1; return (1); }