Commit 6999b7a1 by maarten

werkende minimizer...

git-svn-id: svn+ssh://gitlab/srv/svn-repos/pdb-redo/trunk@317 a1961a4f-ab94-4bcc-80e8-33b5a54de466
parent 8118c073
......@@ -74,7 +74,7 @@ class MapMaker
MapMaker& operator=(const MapMaker&) = delete;
void loadMTZ(const boost::filesystem::path& mtzFile,
float samplingRate = 4.5,
float samplingRate,
std::initializer_list<std::string> fbLabels = { "FWT", "PHWT" },
std::initializer_list<std::string> fdLabels = { "DELFWT", "PHDELWT" },
std::initializer_list<std::string> foLabels = { "FP", "SIGFP" },
......@@ -89,13 +89,13 @@ class MapMaker
void calculate(const boost::filesystem::path& hklin,
const Structure& structure,
bool noBulk, AnisoScalingFlag anisoScaling,
float samplingRate = 4.5, bool electronScattering = false,
float samplingRate, bool electronScattering = false,
std::initializer_list<std::string> foLabels = { "FP", "SIGFP" },
std::initializer_list<std::string> freeLabels = { "FREE" });
void recalc(const Structure& structure,
bool noBulk = false, AnisoScalingFlag anisoScaling = as_None,
float samplingRate = 4.5, bool electronScattering = false);
bool noBulk, AnisoScalingFlag anisoScaling,
float samplingRate, bool electronScattering = false);
void printStats();
......
......@@ -238,7 +238,7 @@ void MapMaker<FTYPE>::loadMTZ(const fs::path& hklin, float samplingRate,
mResLow = res;
}
fixMTZ();
// fixMTZ();
mGrid.init(spacegroup, cell,
mHKLInfo.resolution(), samplingRate); // define grid
......@@ -258,7 +258,8 @@ void MapMaker<FTYPE>::loadMTZ(const fs::path& hklin, float samplingRate,
<< " stored resolution: " << mHKLInfo.resolution().limit() << endl
<< " calculated reshi = " << mResHigh << " reslo = " << mResLow << endl
<< " spacegroup: " << spacegroup.symbol_hm() << endl
<< " cell: " << cell.format() << endl;
<< " cell: " << cell.format() << endl
<< " grid: " << mGrid.format() << endl;
printStats();
}
......
......@@ -276,11 +276,15 @@ struct AtomImpl
if (mSymmetryCopy)
throw runtime_error("Moving symmetry copy");
boost::format kPosFmt("%.3f");
mRow["Cartn_x"] = (kPosFmt % p.getX()).str();
mRow["Cartn_y"] = (kPosFmt % p.getY()).str();
mRow["Cartn_z"] = (kPosFmt % p.getZ()).str();
mRow["Cartn_x"] = p.getX();
mRow["Cartn_y"] = p.getY();
mRow["Cartn_z"] = p.getZ();
// boost::format kPosFmt("%.3f");
//
// mRow["Cartn_x"] = (kPosFmt % p.getX()).str();
// mRow["Cartn_y"] = (kPosFmt % p.getY()).str();
// mRow["Cartn_z"] = (kPosFmt % p.getZ()).str();
mLocation = p;
}
......
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