/home/doxygen/libascend/compiler/bintoken.h

Go to the documentation of this file.
00001 /*  ASCEND modelling environment
00002     Copyright (C) 2006 Carnegie Mellon University
00003     Copyright (C) 1998 Carnegie Mellon University
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2, or (at your option)
00008     any later version.
00009 
00010     This program 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
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program; if not, write to the Free Software
00017     Foundation, Inc., 59 Temple Place - Suite 330,
00018     Boston, MA 02111-1307, USA.
00019 *//*
00029     By Benjamin A. Allan
00030     Jan 7, 1998.
00031     Last in CVS: $Revision: 1.2 $ $Date: 1998/06/16 16:38:37 $ $Author: mthomas $
00032 */
00033 
00034 #ifndef ASC_BINTOKEN_H
00035 #define ASC_BINTOKEN_H
00036 
00037 #include <utilities/ascConfig.h>
00038 #include "instance_enum.h"
00039 #include "compiler.h"
00040 
00045 enum bintoken_kind {
00046   BT_error,
00047   BT_C,
00048   BT_F77 
00049 };
00050 
00064 ASC_DLLSPEC int BinTokenSetOptions(
00065     CONST char *srcname, CONST char *objname, CONST char *libname
00066     ,CONST char *buildcommand, CONST char *unlinkcommand
00067     ,unsigned long maxreln
00068     ,int verbose, int housekeep
00069 );
00070 
00076 extern void BinTokenClearTables(void);
00077 
00085 extern void BinTokenDeleteReference(int btable);
00086 
00093 extern void BinTokensCreate(struct Instance *root, enum bintoken_kind method);
00094 
00103 extern int BinTokenCalcResidual(int btable, int bindex, double *vars, double *residual);
00104 
00114 extern int BinTokenCalcGradient(int btable, int bindex, double *vars,
00115                                 double *residual, double *gradient);
00116 
00117 /* @} */
00118 
00119 #endif  /* ASC_BINTOKEN_H */
00120 

Generated on Thu Jul 17 04:00:09 2008 for libascend by  doxygen 1.5.1