Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup Compiler Warning Messages #914

Merged
merged 2 commits into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gillespy2/solvers/cpp/c_base/ssa_cpp_solver/SSASolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ namespace Gillespy
}
}

delete propensity_values;
delete[] propensity_values;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "hybrid_template.h"
#include "template_params.h"
#include "hybrid_template.h"
#include <cmath>

// , cannot be overridden, so we can't use it as a delimiter
Expand Down
5 changes: 3 additions & 2 deletions gillespy2/solvers/cpp/c_base/template/template_defaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

#pragma once

// Import solver-specific template options, built from the Python model (needs to be above defaults)
#include "template_opts.h"

// To set propensities:
// g++ -D GPY_PROPENSITIES='PROPENSITY(0, x) PROPENSITY(1, x + 1) PROPENSITY(2, x + 2)'

Expand Down Expand Up @@ -86,5 +89,3 @@

#endif

// Import solver-specific template options.
#include "template_opts.h"