MADNESS
0.10.1
apps
periodic_old
util.h
Go to the documentation of this file.
1
/*
2
This file is part of MADNESS.
3
4
Copyright (C) 2007,2010 Oak Ridge National Laboratory
5
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
20
For more information please contact:
21
22
Robert J. Harrison
23
Oak Ridge National Laboratory
24
One Bethel Valley Road
25
P.O. Box 2008, MS-6367
26
27
email: harrisonrj@ornl.gov
28
tel: 865-241-3937
29
fax: 865-572-0680
30
*/
31
32
#ifndef UTIL_H_
33
#define UTIL_H_
34
35
#include <
madness/mra/mra.h
>
36
#include <
madness/world/MADworld.h
>
37
38
namespace
madness
{
39
// void printfunc(const World& world, Function<double,3> f, int npts)
40
// {
41
// Tensor<double> LL = FunctionDefaults<3>::get_cell_width();
42
// double L = LL[0];
43
// double bstep = L / npts;
44
// f.reconstruct();
45
// for (int i = 0; i <= npts; i++)
46
// {
47
// Vector<double,3> p(-L/2 + i * bstep);
48
// if (world.rank() == 0) printf("%.2f\t\t%.8f\n", p[0], f(p));
49
// }
50
// if (world.rank() == 0) printf("\n");
51
// }
52
53
// void printfunc(const World& world, Function<double,3> f1, Function<double,3> f2, int npts)
54
// {
55
// Tensor<double> LL = FunctionDefaults<3>::get_cell_width();
56
// double L = LL[0];
57
// double bstep = L / npts;
58
// f1.reconstruct();
59
// f2.reconstruct();
60
// for (int i = 0; i <= npts; i++)
61
// {
62
// Vector<double,3> p(-L/2 + i * bstep);
63
// if (world.rank() == 0) printf("%.2f\t\t%.8f\t%.8f\n", p[0], f1(p), f2(p));
64
// }
65
// if (world.rank() == 0) printf("\n");
66
// }
67
}
68
//
69
//#include <madness/mra/mra.h>
70
//#include <madness/world/MADworld.h>
71
//#include <vector>
72
//
73
//namespace madness
74
//{
75
// class OnesFunctor :
76
// public FunctionFunctorInterface<double,3>
77
// {
78
// private:
79
//
80
// public:
81
// //*************************************************************************
82
// OnesFunctor()
83
// {
84
// }
85
// //*************************************************************************
86
//
87
// //*************************************************************************
88
// virtual ~OnesFunctor() {}
89
// //*************************************************************************
90
//
91
// //*************************************************************************
92
// double operator()(const coordT& x) const
93
// {
94
// return 1.0;
95
// }
96
// //*************************************************************************
97
// };
98
//
99
// //***************************************************************************
100
// class ZerosFunctor :
101
// public FunctionFunctorInterface<double,3>
102
// {
103
// private:
104
//
105
// public:
106
// //*************************************************************************
107
// ZerosFunctor()
108
// {
109
// }
110
// //*************************************************************************
111
//
112
// //*************************************************************************
113
// virtual ~ZerosFunctor() {}
114
// //*************************************************************************
115
//
116
// //*************************************************************************
117
// double operator()(const coordT& x) const
118
// {
119
// return 0.0;
120
// }
121
// //*************************************************************************
122
// };
123
// //***************************************************************************
124
//}
125
126
#endif
MADworld.h
This header should include pretty much everything needed for the parallel runtime.
mra.h
Main include file for MADNESS and defines Function interface.
madness
Namespace for all elements and tools of MADNESS.
Definition
DFParameters.h:10
Generated on Thu Dec 19 2024 21:22:52 for MADNESS by
1.9.8