Toggle navigation
Documentation
Big picture
The finite element method
The data structure
Not-so-quick guide
Optimisation
Order of action functions
Example codes and tutorials
List of example codes and tutorials
Meshing
Solvers
MPI parallel processing
Post-processing/visualisation
Other
Change log
Creating documentation
Coding conventions
Index
FAQ
About
People
Contact/Get involved
Publications
Acknowledgements
Copyright
Picture show
Go
src
generic
fpdiff.h
Go to the documentation of this file.
1
// LIC// ====================================================================
2
// LIC// This file forms part of oomph-lib, the object-oriented,
3
// LIC// multi-physics finite-element library, available
4
// LIC// at http://www.oomph-lib.org.
5
// LIC//
6
// LIC// Copyright (C) 2006-2022 Matthias Heil and Andrew Hazel
7
// LIC//
8
// LIC// This library is free software; you can redistribute it and/or
9
// LIC// modify it under the terms of the GNU Lesser General Public
10
// LIC// License as published by the Free Software Foundation; either
11
// LIC// version 2.1 of the License, or (at your option) any later version.
12
// LIC//
13
// LIC// This library is distributed in the hope that it will be useful,
14
// LIC// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
// LIC// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
// LIC// Lesser General Public License for more details.
17
// LIC//
18
// LIC// You should have received a copy of the GNU Lesser General Public
19
// LIC// License along with this library; if not, write to the Free Software
20
// LIC// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21
// LIC// 02110-1301 USA.
22
// LIC//
23
// LIC// The authors may be contacted at oomph-lib@maths.man.ac.uk.
24
// LIC//
25
// LIC//====================================================================
26
#ifndef OOMPH_FPDIFF_HEADER
27
#define OOMPH_FPDIFF_HEADER
28
29
#include <fstream>
30
#include <ostream>
31
#include <string>
32
#include <vector>
33
34
// Config header
35
#ifdef HAVE_CONFIG_H
36
#include <oomph-lib-config.h>
37
#endif
38
39
namespace
oomph
40
{
41
/************************************************************************************
42
* @brief
43
*
44
* @param filename
45
* @return std::vector<std::string>
46
************************************************************************************/
47
std::vector<std::string>
gzip_load
(
const
std::string& filename);
48
49
/************************************************************************************
50
* @brief
51
*
52
* @param filename1
53
* @param filename2
54
* @param outstream
55
* @param relative_error: max relative difference in percent.
56
* @param small: a small number -- essentially round-off error.
57
* @param details_stream
58
* @return true
59
* @return false
60
************************************************************************************/
61
int
fpdiff
(
const
std::string& filename1,
62
const
std::string& filename2,
63
std::ostream& outstream,
64
const
double
& relative_error = 1.0e-01,
65
const
double
& small = 1.0e-14);
66
67
/************************************************************************************
68
* @brief
69
*
70
* @param filename1
71
* @param filename2
72
* @param outstream
73
* @param relative_error: max relative difference in percent.
74
* @param small: a small number -- essentially round-off error.
75
* @param details_stream
76
* @return true
77
* @return false
78
************************************************************************************/
79
int
fpdiff
(
const
std::string& filename1,
80
const
std::string& filename2,
81
const
std::string& log_file,
82
const
double
& relative_error = 1.0e-01,
83
const
double
& small = 1.0e-14);
84
}
// namespace oomph
85
86
#endif
oomph
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
Definition
advection_diffusion_elements.cc:30
oomph::gzip_load
std::vector< std::string > gzip_load(const std::string &filename)
Definition
fpdiff.cc:161
oomph::fpdiff
int fpdiff(const std::string &filename1, const std::string &filename2, std::ostream &outstream, const double &relative_error, const double &small)
Definition
fpdiff.cc:210