Fix the variable definition initialization rules and add test for Def…
Created by: pnorbert
…ineVariable.
Fixed and tested defining local values, joined arrays and global arrays with correct parameters.
Merge request reports
Activity
Filter activity
29 29 { 30 30 if (m_DebugMode) 31 31 { 32 variable.CheckDims("in call to Write"); 32 variable.CheckDimsBeforeWrite("Write(" + variable.m_Name + ")"); Created by: williamfgc
@pnorbert This might create confusion since the user might rush to look for a Write(const string &name, T* ) signature, (e.g. Write("myvar", var.data() ); )...I would keep it as "in call to Write" since the Variable.m_Name is already printed by the exception throw by either CheckDimsCommon or CheckDimsBeforeWrite. Still, this shouldn't stop the PR.
265 257 } 266 258 267 259 /* Extra checks for invalid settings */ 260 if (m_DebugMode) 261 CheckDimsCommon("DefineVariable(" + m_Name + ")"); 137 137 /** Registered transforms */ 138 138 std::vector<TransformInfo> m_TransformsInfo; 139 139 140 /** Self-check dims according to type, called right after DefineVariable and 141 * SetSelection. 142 * @param hint extra debugging info for the exception */ 143 void CheckDimsCommon(const std::string hint) const;
Please register or sign in to reply