Commit 55e1553e by Francois Gygi

cleanup Function3d header and test program

parent 5d7ba439
......@@ -34,8 +34,6 @@ class Function3d
std::string name_;
std::vector<double> val_;
void byteswap_double(size_t n, double* x);
const D3vector a(void) const { return a_; }
const D3vector b(void) const { return b_; }
const D3vector c(void) const { return c_; }
......
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2018 The Regents of the University of California
//
// This file is part of Qbox
//
// Qbox is distributed under the terms of the GNU General Public License
// as published by the Free Software Foundation, either version 2 of
// the License, or (at your option) any later version.
// See the file COPYING in the root directory of this distribution
// or <http://www.gnu.org/licenses/>.
//
////////////////////////////////////////////////////////////////////////////////
//
// testFunction3d.C
//
////////////////////////////////////////////////////////////////////////////////
#include<iostream>
#include "Function3d.h"
using namespace std;
int main()
// usage: ./testFunction3d file.xml
int main(int argc, char** argv)
{
Function3d f;
f.read("test.xml");
if ( argc != 2 )
{
cerr << "usage: " << argv[0] << " file.xml" << endl;
return 1;
}
f.read(argv[1]);
cout << "function name: " << f.name_ << endl;
cout << "function base64 size: " << f.str_.size() << endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment