PSCF v1.1
Blank.cpp
1/*
2* Util Package - C++ Utilities for Scientific Computation
3*
4* Copyright 2010 - 2017, The Regents of the University of Minnesota
5* Distributed under the terms of the GNU General Public License.
6*/
7
8#include "Blank.h"
9
10namespace Util
11{
12
13 // Constructor.
16 {}
17
20 {}
21
22 // Read a blank line
23 void Blank::readParam(std::istream &in)
24 {
25 if (isIoProcessor()) {
26 char buf[255];
27 in.getline(buf,255);
30 }
31 }
32 }
33
34 // Write a blank line
35 void Blank::writeParam(std::ostream &out) const
36 { out << std::endl; }
37
38}
virtual void readParam(std::istream &in)
Read a blank line.
Definition: Blank.cpp:23
virtual void writeParam(std::ostream &out) const
Write a blank line.
Definition: Blank.cpp:35
virtual ~Blank()
Destructor.
Definition: Blank.cpp:19
Blank()
Constructor.
Definition: Blank.cpp:14
static std::ostream & file()
Get log ostream by reference.
Definition: Log.cpp:57
bool isIoProcessor() const
Can this processor do file I/O ?
Definition: MpiFileIo.h:92
Abstract base class for classes that input and ouput parameters to file.
static bool echo()
Get echo parameter.
Utility classes for scientific computation.
Definition: accumulators.mod:1