mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 13:40:46 +01:00
XML serialisation of parms and initialise from parms object
This commit is contained in:
parent
d83868fdbb
commit
f6c3f6bf2d
@ -34,6 +34,12 @@ Author: Christoph Lehner <clehner@bnl.gov>
|
|||||||
|
|
||||||
namespace Grid {
|
namespace Grid {
|
||||||
|
|
||||||
|
struct ChebyParams : Serializable {
|
||||||
|
GRID_SERIALIZABLE_CLASS_MEMBERS(ChebyParams,
|
||||||
|
RealD, alpha,
|
||||||
|
RealD, beta,
|
||||||
|
int, Npoly);
|
||||||
|
};
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Generic Chebyshev approximations
|
// Generic Chebyshev approximations
|
||||||
@ -67,6 +73,7 @@ namespace Grid {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Chebyshev(){};
|
Chebyshev(){};
|
||||||
|
Chebyshev(ChebyParams p){ Init(p.alpha,p.beta,p.Npoly);};
|
||||||
Chebyshev(RealD _lo,RealD _hi,int _order, RealD (* func)(RealD) ) {Init(_lo,_hi,_order,func);};
|
Chebyshev(RealD _lo,RealD _hi,int _order, RealD (* func)(RealD) ) {Init(_lo,_hi,_order,func);};
|
||||||
Chebyshev(RealD _lo,RealD _hi,int _order) {Init(_lo,_hi,_order);};
|
Chebyshev(RealD _lo,RealD _hi,int _order) {Init(_lo,_hi,_order);};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user