Fixed unit_vel in Ramses. Added a new type alias in FourierMap
This commit is contained in:
parent
a2373d8919
commit
9ae42a2442
@ -55,6 +55,7 @@ namespace CosmoTool
|
||||
protected:
|
||||
SpectrumFunction() {}
|
||||
public:
|
||||
typedef T type;
|
||||
typedef Eigen::Array<T, 1, Eigen::Dynamic> VecType;
|
||||
typedef Eigen::Map<VecType, Eigen::Aligned> MapType;
|
||||
typedef Eigen::Map<VecType const, Eigen::Aligned> ConstMapType;
|
||||
@ -88,6 +89,7 @@ namespace CosmoTool
|
||||
FourierMap() {}
|
||||
|
||||
public:
|
||||
typedef T type;
|
||||
typedef Eigen::Array<T, 1, Eigen::Dynamic> VecType;
|
||||
typedef Eigen::Map<VecType, Eigen::Aligned> MapType;
|
||||
typedef Eigen::Map<VecType const, Eigen::Aligned> ConstMapType;
|
||||
@ -190,6 +192,7 @@ namespace CosmoTool
|
||||
class MapUtilityFunction
|
||||
{
|
||||
public:
|
||||
typedef T type;
|
||||
typedef SpectrumFunction<T> Spectrum;
|
||||
typedef boost::shared_ptr<Spectrum> Spectrum_ptr;
|
||||
typedef FourierMap<std::complex<T> > FMap;
|
||||
|
@ -309,7 +309,7 @@ CosmoTool::SimuData *CosmoTool::loadRamsesSimu(const char *basename, int outputI
|
||||
|
||||
double hubble = info.aexp*info.aexp/info.unit_t / (1e5/CM_IN_MPC);
|
||||
double L0 = info.boxSize*info.unitLength*hubble/100/CM_IN_MPC/info.aexp;
|
||||
double unit_vel = L0*hubble/info.aexp;
|
||||
double unit_vel = L0*100/info.aexp;
|
||||
|
||||
while (1)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user