diff --git a/src/Bytecode.hh b/src/Bytecode.hh index 1928f46c815ebfaedc5cd8fedcb130264ff82cda..2c1e308308538d267618336180b0aa5f9a9c765a 100644 --- a/src/Bytecode.hh +++ b/src/Bytecode.hh @@ -74,7 +74,7 @@ enum class Tag FLDR, // Loads a residual onto the stack FSTPR, // Stores a residual from the stack - FSTPG, // Stores a derivative from the stack + FSTPG, // Stores the derivative of a simple (single-equation) block in simulate mode FSTPG2, // Stores a derivative matrix for a static model from the stack FSTPG3, // Stores a derivative matrix for a dynamic model from the stack @@ -279,8 +279,7 @@ struct FSTPSU final : public Instruction struct FSTPG final : public Instruction { - const int pos; - explicit FSTPG(int pos_arg) : Instruction {Tag::FSTPG}, pos {pos_arg} + explicit FSTPG() : Instruction {Tag::FSTPG} { } }; diff --git a/src/ModelTree.hh b/src/ModelTree.hh index e1fe26d46bff3635f04c4fb35ddfc8ac666bfeda..169d52a498c643b90bca98ab0a844d8b30e8872a 100644 --- a/src/ModelTree.hh +++ b/src/ModelTree.hh @@ -1823,7 +1823,7 @@ ModelTree::writeBlockBytecodeHelper(Bytecode::Writer& code_file, int block, blocks_temporary_terms_idxs, tef_terms); else code_file << Bytecode::FLDZ {}; - code_file << Bytecode::FSTPG {0}; + code_file << Bytecode::FSTPG {}; } break;