Skip to content
Snippets Groups Projects
Commit 5ac9c8ba authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

corr

parent d069d89c
No related branches found
No related tags found
No related merge requests found
...@@ -733,14 +733,14 @@ string COlc::weight_str() const ...@@ -733,14 +733,14 @@ string COlc::weight_str() const
//* namespace NOlo - service functions //* namespace NOlo - service functions
//************************************************************************************************** //**************************************************************************************************
int NOlo::j2j(const POlo fin, int jin, const POlo fout ) int NOlo::j2j(const COlo* fin, int jin, const COlo* fout )
{ {
if (j >= fin->nJ()) if (jin >= fin->nJ())
throw S("BUG: NOlo::j2j called with invalid j"); throw S("BUG: NOlo::j2j called with invalid j");
if (fout->nJ() == 1) // nJ:1 correspondence if (fout->nJ() == 1) // nJ:1 correspondence
return 0; return 0;
else if (fout->nJ() == fin->nJ()) // nJ:nJ correspondence else if (fout->nJ() == fin->nJ()) // nJ:nJ correspondence
return j; return jin;
else else
throw S("Wrong file correspondence: number of spectra does not match"); throw S("Wrong file correspondence: number of spectra does not match");
} }
...@@ -168,7 +168,7 @@ public: ...@@ -168,7 +168,7 @@ public:
//! Service functions for online objects. //! Service functions for online objects.
namespace NOlo { namespace NOlo {
int j2j(const POlo fin, int jin, const POlo fout ); int j2j(const COlo* fin, int jin, const COlo* fout );
} // namespace NOlo } // namespace NOlo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment