~esys-p-dev/esys-particle/gengeo

« back to all changes in this revision

Viewing changes to src/MNTable3D.h

  • Committer: Steffen Abe
  • Date: 2015-03-06 09:19:16 UTC
  • Revision ID: s.abe@igem-energie.de-20150306091916-3nvu8s74or0jcyyd
Added block writing functions for bonded models
WARNING: THIS IS STRONGLY EXPERIMENTAL
- still has 2 issues: 
(1) generation of spurious bonds
(2) the temporary bond file isn't removed

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
  // blocked output handling
93
93
  bool m_is_writing_blocks;
94
94
  string m_outfilename;
 
95
  string m_temp_bondfilename;
95
96
  std::ios::pos_type m_np_write_pos;
96
97
  unsigned int m_block_particles_written;
 
98
  unsigned int m_block_bonds_written;
97
99
 
98
100
 public:
99
101
  MNTable3D();
138
140
  virtual void generateBondsWithJointSet(const TriPatchSet&,int,double,int);
139
141
  virtual void generateBondsTagged(int,double,int,int,int);
140
142
  virtual void generateRandomBonds(int,double,double,int,int,int);
 
143
  virtual void removeBonds();
141
144
 
142
145
  void insertBond(int,int,int);
143
146
 
152
155
  // block writing 
153
156
  void initBlockWriting(const string&);
154
157
  void writeBlock(const Vector3&,const Vector3&);
 
158
  void writeBondsBlocked();
155
159
  void finishBlockWriting();
156
160
};
157
161
#endif // __MNTABLE_H