Files @ 121f7720db62
Branch filter:

Location: EI/VirtualLeaf/src/flux_function.h

Michael Guravage
Removed references to XMLWriteLeafSourceCode and XMLWriteReactionsCode.

--
user: Michael Guravage <michael.guravage@cwi.nl>
branch 'default'

changed src/ChangeLog
changed src/VirtualLeaf.pro
changed src/xmlwrite.cpp
changed src/xmlwrite.h
removed src/xmlwritecode.cpp
/*
 *  flux_function.h
 *  VirtualLeaf
 *
 *  Created by Roeland Merks on 07-06-10.
 *  Copyright 2010 __MyCompanyName__. All rights reserved.
 *
 */

// This header file defines a macro "SumFluxFromWalls" that attempts to hide this 
// horrendously confusing member function wrapper construct from VirtualLeaf's end users

// required format of flux_function is:
// double [model class name]::[function name](CellBase *this_cell, CellBase *adjacent_cell, Wall *w)
// e.g.:
// double MyModel::PINflux(CellBase *this_cell, CellBase *adjacent_cell, Wall *w)

#include "far_mem_5.h"

#define SumFluxFromWalls( _vleafcellp_, _flux_function_ ) \
(( _vleafcellp_->ReduceCellAndWalls<double>( far_3_arg_mem_fun( *this, &_flux_function_ ) ) ))