~johan-hake/dolfin/general-rk-solver

« back to all changes in this revision

Viewing changes to dolfin/io/File.cpp

  • Committer: Johan Hake
  • Date: 2013-03-27 15:18:08 UTC
  • mfrom: (7352.1.227 working)
  • Revision ID: hake.dev@gmail.com-20130327151808-b73d4pueq1n432hg
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
// Modified by Ola Skavhaug 2009.
22
22
//
23
23
// First added:  2002-11-12
24
 
// Last changed: 2013-03-04
 
24
// Last changed: 2013-03-11
25
25
 
26
26
#include <fstream>
27
27
#include <string>
143
143
  // Do nothing
144
144
}
145
145
//-----------------------------------------------------------------------------
 
146
void File::operator<<(const std::pair<const Mesh*, double> mesh)
 
147
{
 
148
  file->write();
 
149
  *file << mesh;
 
150
}
 
151
//-----------------------------------------------------------------------------
 
152
void File::operator<<(const std::pair<const MeshFunction<int>*, double> f)
 
153
{
 
154
  file->write();
 
155
  *file << f;
 
156
}
 
157
//-----------------------------------------------------------------------------
 
158
void File::operator<<(const std::pair<const MeshFunction<std::size_t>*, double> f)
 
159
{
 
160
  file->write();
 
161
  *file << f;
 
162
}
 
163
//-----------------------------------------------------------------------------
 
164
void File::operator<<(const std::pair<const MeshFunction<double>*, double> f)
 
165
{
 
166
  file->write();
 
167
  *file << f;
 
168
}
 
169
//-----------------------------------------------------------------------------
 
170
void File::operator<<(const std::pair<const MeshFunction<bool>*, double> f)
 
171
{
 
172
  file->write();
 
173
  *file << f;
 
174
}
 
175
//-----------------------------------------------------------------------------
146
176
void File::operator<<(const std::pair<const Function*, double> u)
147
177
{
148
178
  u.first->update();