MADNESS 0.10.1
misc.h File Reference

Header to declare stuff which has not yet found a home. More...

#include <iostream>
#include <string>
Include dependency graph for misc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  madness
 Namespace for all elements and tools of MADNESS.

Functions

unsigned long madness::checksum_file (const char *filename)
 Simple checksum for ASCII characters in file.
long madness::get_memory_usage ()
void madness::gprofexit (int id, int nproc)
 Rename gmon.out for each process by ordering process termination.
std::string madness::lowercase (const std::string &s)
bool madness::nearlyEqual (double a, double b, double epsilon=1e-9)
std::istream & madness::position_stream (std::istream &f, const std::string &tag, bool rewind=true)
std::istream & madness::position_stream_to_word (std::istream &f, const std::string &tag, const char comment, bool rewind, bool silent, bool first_word_only)
 position the input stream to tag, which must be a word (not part of a word)
std::string madness::unique_fileid ()
 creates a unique filename, using PBS ID if available

Detailed Description

Header to declare stuff which has not yet found a home.