MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
VoxelJunction.h
Go to the documentation of this file.
1 /**********************************************************************
2 ** This program is part of 'MOOSE', the
3 ** Messaging Object Oriented Simulation Environment.
4 ** Copyright (C) 2003-2010 Upinder S. Bhalla. and NCBS
5 ** It is made available under the terms of the
6 ** GNU Lesser General Public License version 2.1
7 ** See the file COPYING.LIB for the full notice.
8 **********************************************************************/
9 
10 #ifndef _VOXEL_JUNCTION_H
11 #define _VOXEL_JUNCTION_H
12 
19 {
20  public:
21  VoxelJunction( unsigned int f, unsigned int s, double d = 1.0 )
22  : first( f ), second( s ),
23  firstVol( 0 ), secondVol( 0 ),
24  diffScale( d )
25  {;}
27  : first( ~0 ), second( ~0 ), firstVol( 0 ), secondVol( 0 ),
28  diffScale( 1.0 )
29  {;}
30 
31  // Used for sorting.
32  bool operator<( const VoxelJunction& other ) const
33  {
34  if ( first < other.first ) return 1;
35  if ( first > other.first ) return 0;
36  if ( second < other.second ) return 1;
37  return 0;
38  }
39 
40  unsigned int first;
41  unsigned int second;
42  double firstVol;
43  double secondVol;
44  double diffScale;
45 };
46 
47 #endif // _VOXEL_JUNCTION_H
double diffScale
Definition: VoxelJunction.h:44
unsigned int second
MeshIndex for first compartment.
Definition: VoxelJunction.h:41
bool operator<(const VoxelJunction &other) const
Definition: VoxelJunction.h:32
double secondVol
Definition: VoxelJunction.h:43
VoxelJunction(unsigned int f, unsigned int s, double d=1.0)
Definition: VoxelJunction.h:21
double firstVol
MeshIndex for second compartment.
Definition: VoxelJunction.h:42
unsigned int first
Definition: VoxelJunction.h:40