Skip to content

Commit

Permalink
Checkpointing work till largely finished. Refs #6968.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Aug 13, 2013
1 parent ff7a0a8 commit 93c0c04
Show file tree
Hide file tree
Showing 2 changed files with 193 additions and 124 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class DLLExport SaveGSASInstrumentFile : public API::Algorithm
ChopperConfiguration_sptr setupNOMConstants(int intfrequency);

/// Parse profile table workspace to a map
std::map<std::string, double> parseProfileTableWorkspace(DataObjects::TableWorkspace_sptr ws);
void parseProfileTableWorkspace(DataObjects::TableWorkspace_sptr ws, std::map<unsigned int, std::map<std::string, double> > profilemap)

/// Convert to GSAS instrument file
void convertToGSAS(std::vector<unsigned int> banks, std::string gsasinstrfilename);
Expand All @@ -130,7 +130,10 @@ class DLLExport SaveGSASInstrumentFile : public API::Algorithm
double aaba(double n, double ea1, double ea2, double ta1, double ta2, double dsp);

/// Get parameter value from a map
double getParameterValue(std::map<std::string, double> profilemap, std::string parname);
double getValueFromMap(std::map<std::string, double> profilemap, std::string parname);

/// Get parameter value from class storage
double getProfileParameterValue(unsigned int bankid, std::string paramname);

/// Input workspace
DataObjects::TableWorkspace_sptr m_inpWS;
Expand Down Expand Up @@ -159,6 +162,9 @@ class DLLExport SaveGSASInstrumentFile : public API::Algorithm
/// Chopper configuration
ChopperConfiguration_sptr m_configuration;

/// Profile parameter map
std::map<unsigned int, std::map<std::string, double> > m_profileMap;

//
std::vector<double> m_gdsp;
std::vector<double> m_gdt;
Expand Down

0 comments on commit 93c0c04

Please sign in to comment.