cta_modbuild_sp.h

Go to the documentation of this file.
00001 /*
00002 COSTA: Problem solving environment for data assimilation
00003 Copyright (C) 2005  Nils van Velzen
00004 
00005 This library is free software; you can redistribute it and/or
00006 modify it under the terms of the GNU Lesser General Public
00007 License as published by the Free Software Foundation; either
00008 version 2.1 of the License, or (at your option) any later version.
00009 
00010 This library is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 Lesser General Public License for more details.
00014 
00015 You should have received a copy of the GNU Lesser General Public
00016 License along with this library; if not, write to the Free Software
00017 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 */
00019 
00020 /**
00021 \file  cta_modbuild_sp.h
00022 \brief SP-Modelbuilder.
00023 */
00024 
00025 #ifndef CTA_MODBUILD_SP_H
00026 #define CTA_MODBUILD_SP_H
00027 #include "cta_handles.h"
00028 #include "cta_datatypes.h"
00029 #include "cta_metainfo.h"
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 /** \brief Create the model class of the SP-Modelbuilder
00036  *
00037  * \note This is not a user function. It is called at initialization of the
00038  *       COSTA environment.
00039  *
00040  *  \param modelcls  O  receives handle of the SP-modelbuilder class
00041  */
00042 void CTA_Modbuild_sp_CreateClass(CTA_ModelClass *modelcls);
00043 void modbuild_sp_create_size(CTA_Handle userdata, int *memsize, int *ierr);
00044 void modbuild_sp_create_init(CTA_Handle *this, CTA_Handle *data, CTA_Handle *hinput, int *ierr);
00045 void modbuild_sp_free(CTA_Handle *data ,int *ierr);
00046 void modbuild_sp_compute(CTA_Handle *data, CTA_Time *timespan, int *ierr);
00047 void modbuild_sp_setstate(CTA_Handle *data, CTA_TreeVector *state, int *ierr);
00048 void modbuild_sp_getstate(CTA_Handle *data, CTA_TreeVector *state, int *ierr);
00049 void modbuild_sp_axpymodel(CTA_Handle *datay, double *alpha, CTA_Handle *datax, int *ierr);
00050 void modbuild_sp_axpystate(CTA_Handle *data, double *alpha, CTA_TreeVector *statex, int *ierr);
00051 void modbuild_sp_setforc(CTA_Handle *data, CTA_TreeVector *state, int *ierr);
00052 void modbuild_sp_getforc(CTA_Handle *data, CTA_TreeVector *state, int *ierr);
00053 void modbuild_sp_axpyforc(CTA_Handle *data, CTA_Time *tspan, double *alpha,  CTA_TreeVector *statex, int *ierr);
00054 void modbuild_sp_setparam(CTA_Handle *data, CTA_TreeVector *state, int *ierr);
00055 void modbuild_sp_getparam(CTA_Handle *data, CTA_TreeVector *state, int *ierr);
00056 void modbuild_sp_axpyparam(CTA_Handle *data, double *alpha, CTA_TreeVector *statex, int *ierr);
00057 void modbuild_sp_getnoisecount(CTA_Handle *data, int* nnoise, int* ierr);
00058 void modbuild_sp_getnoisecovar(CTA_Handle *data, CTA_TreeVector *colsvar, int* ierr);
00059 void modbuild_sp_getobsvalues(CTA_Handle *data, CTA_Time *ttime, CTA_ObsDescr *hdescr, CTA_Vector *vval, int* ierr);
00060 void modbuild_sp_getobsselect(CTA_Handle *data, CTA_Time *ttime, CTA_ObsDescr *hdescr, CTA_String *sselect, int* ierr);
00061 void modbuild_sp_addnoise(CTA_Handle *data, CTA_Time *ttime, int* ierr);
00062 void modbuild_sp_ar1_create(CTA_Handle *hinput, CTA_TreeVector *state, CTA_TreeVector *sbound, 
00063                             CTA_TreeVector *sparam, int *nnoise, CTA_Time  *time0,
00064                             CTA_String *snamnoise, CTA_Handle *husrdata, int *ierr);
00065 void  modbuild_sp_ar1_covar(CTA_TreeVector *colsvar,int* nnoise, CTA_Handle husrdata,int* ierr);
00066 void modbuild_sp_ar1_compute(CTA_Time *timesspan,CTA_TreeVector *state, CTA_TreeVector *saxpyforc,
00067                              BOOL *baddnoise, CTA_TreeVector *sparam, CTA_Handle husrdata,
00068                              int* ierr);
00069 void modbuild_sp_ar1_getobsval(CTA_TreeVector *state, CTA_ObsDescr *hdescr, CTA_Vector *vval, CTA_Handle *husrdata, int *ierr);
00070 int modbuild_sp_compute_covars(int nmodel, double *Qar1, double *p0, CTAI_Gridm hgrid);
00071 void CTA_Modbuild_sp_CreateClass(CTA_ModelClass *modelcls);
00072 
00073 #ifdef __cplusplus
00074 }
00075 #endif
00076 
00077 #endif
00078 

Generated on Mon Apr 6 14:05:58 2009 for COSTA by  doxygen 1.5.2