/[ascend]/trunk/ascend/compiler/bintoken.h
ViewVC logotype

Diff of /trunk/ascend/compiler/bintoken.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2387 by jpye, Wed Dec 15 06:35:43 2010 UTC revision 2388 by jpye, Tue Feb 15 03:36:18 2011 UTC
# Line 1  Line 1 
1  /*  ASCEND modelling environment  /*  ASCEND modelling environment
2      Copyright (C) 2006 Carnegie Mellon University      Copyright (C) 2006-2011 Carnegie Mellon University
3      Copyright (C) 1998 Carnegie Mellon University      Copyright (C) 1998 Carnegie Mellon University
4    
5      This program is free software; you can redistribute it and/or modify      This program is free software; you can redistribute it and/or modify
# Line 17  Line 17 
17      Foundation, Inc., 59 Temple Place - Suite 330,      Foundation, Inc., 59 Temple Place - Suite 330,
18      Boston, MA 02111-1307, USA.      Boston, MA 02111-1307, USA.
19  *//** @file  *//** @file
20   *  Binary tokens implementation for real relation instances.      Binary tokens implementation for real relation instances.
21   *      
22   *  Note that this header and btprolog.h are a pair.      Note that this header and btprolog.h are a pair.
23   *  btprolog exists to make the C compiler job simpler -      btprolog exists to make the C compiler job simpler -
24   *  we don't want it to know about struct Instance when      we don't want it to know about struct Instance when
25   *  building code because we may not have the compiler      building code because we may not have the compiler
26   *  directory available. btprolog.h is installed with      directory available. btprolog.h is installed with
27   *  the ascend binaries or scripts.      the ascend binaries or scripts.
28  *//*  *//*
29      By Benjamin A. Allan      By Benjamin A. Allan
30      Jan 7, 1998.      Jan 7, 1998.
# Line 73  ASC_DLLSPEC int BinTokenSetOptions( Line 73  ASC_DLLSPEC int BinTokenSetOptions(
73   * Do not call any previously loaded functions after this is   * Do not call any previously loaded functions after this is
74   * executed. Generally, this should only be called at shutdown.   * executed. Generally, this should only be called at shutdown.
75   */   */
76  extern void BinTokenClearTables(void);  ASC_DLLSPEC void BinTokenClearTables(void);
77    
78  /**  /**
79   * When all the references expire, we might unload the library.   * When all the references expire, we might unload the library.
# Line 90  extern void BinTokenDeleteReference(int Line 90  extern void BinTokenDeleteReference(int
90   * library. Then associates the compiled code to the equations.   * library. Then associates the compiled code to the equations.
91   * The language and compiler tools are determined from method.   * The language and compiler tools are determined from method.
92   */   */
93  extern void BinTokensCreate(struct Instance *root, enum bintoken_kind method);  ASC_DLLSPEC void BinTokensCreate(struct Instance *root, enum bintoken_kind method);
94    
95  /**  /**
96   * Calculates residual of relation indicated by btable and bindex   * Calculates residual of relation indicated by btable and bindex
# Line 100  extern void BinTokensCreate(struct Insta Line 100  extern void BinTokensCreate(struct Insta
100   * Returns an error code (0 if ok, 1 if couldn't evaluate function).   * Returns an error code (0 if ok, 1 if couldn't evaluate function).
101   * May be safely called on token relation instances only.   * May be safely called on token relation instances only.
102   */   */
103  extern int BinTokenCalcResidual(int btable, int bindex, double *vars, double *residual);  ASC_DLLSPEC int BinTokenCalcResidual(int btable, int bindex, double *vars, double *residual);
104    
105  /**  /**
106   * Calculates gradient of relation indicated by btable and bindex   * Calculates gradient of relation indicated by btable and bindex

Legend:
Removed from v.2387  
changed lines
  Added in v.2388

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22