File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22#define ASTARA_REACTOR_H
33
44#include < vector>
5- #include < unique_ptr >
5+ #include < memory >
66
77
88
@@ -13,16 +13,16 @@ namespace astara{
1313 class Reactor {
1414
1515 public:
16- Reactor (int & n_groups, std::vector<double >& delayed_neutron_constants);
16+ Reactor (unsigned int n_groups, std::vector<double > delayed_neutron_constants);
1717 ~Reactor ()=default ;
1818
1919 /* initial condition setters*/
2020
2121 void setInitialFuelTemperature (double fuel_temperature){
22- _fuel_temperature = fuel_temperature
22+ _fuel_temperature = fuel_temperature;
2323 };
2424 void setInitialModeratorTemperature (double moderator_temperature){
25- _moderator_temperature = moderator_temperature
25+ _moderator_temperature = moderator_temperature;
2626 };
2727
2828
@@ -75,8 +75,8 @@ namespace astara{
7575 double _moderator_temperature;
7676
7777 // delayed neutron fractions
78- const unsigned int & _number_of_neutron_groups;
79- const std::vector<double >& _delayed_neutron_constants;
78+ const unsigned int _number_of_neutron_groups;
79+ const std::vector<double > _delayed_neutron_constants;
8080
8181 };
8282}
Original file line number Diff line number Diff line change 11#include " iostream"
22#include " Reactor.h"
3+ #include " Parser.h"
34
4- astara::Reactor::Reactor (int & n_groups, std::vector<double >& delayed_neutron_constants):
5- _number_of_neutron_groups(n_groups),_delayed_neutron_constants(delayed_neutron_constants){
5+ astara::Reactor::Reactor (unsigned int n_groups, std::vector<double > delayed_neutron_constants)
6+ : _number_of_neutron_groups(n_groups),_delayed_neutron_constants(delayed_neutron_constants){
67
7- if (_number_of_neutron_groups!= _delayed_neutron_constants.size ())
8+ if (_number_of_neutron_groups != _delayed_neutron_constants.size ())
89 std::runtime_error (" Number of neutron group must be equal to the number of delayed consts" );
910}
You can’t perform that action at this time.
0 commit comments