Based on the original Rocket Workbench on SourceForge in CVS at: https://sourceforge.net/projects/rocketworkbench
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.5 KiB

  1. /* cpropep.c - Calculation of Complex Chemical Equilibrium */
  2. /* Copyright (C) 2000 */
  3. /* Antoine Lefebvre <antoine.lefebvre@polymtl.ca> */
  4. /* This program is free software; you can redistribute it and/or modify*/
  5. /* it under the terms of the GNU General Public License as published by*/
  6. /* the Free Software Foundation; either version 2 of the License, or */
  7. /* (at your option) any later version. */
  8. /* This program is distributed in the hope that it will be useful, */
  9. /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
  10. /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
  11. /* GNU General Public License for more details. */
  12. /* You should have received a copy of the GNU General Public License */
  13. /* along with this program; if not, write to the Free Software */
  14. /* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
  15. #include <iostream.h>
  16. #include "simulation.h"
  17. //extern int model_1(const int& neq, const double& time,
  18. // double* z, double* dy,
  19. // int& ierr);
  20. extern simulation *simptr;
  21. simulation::simulation(Model_t model) : rk4_solver(model)
  22. {
  23. simptr = this;
  24. sim_name = new char[128];
  25. //model = model_1;
  26. }
  27. simulation::~simulation()
  28. {
  29. //delete rocket.prop;
  30. delete sim_name;
  31. cout << "Destroying simulation\n";
  32. };