Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77966036
InputConstruction.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Aug 17, 13:10
Size
1 KB
Mime Type
text/x-c
Expires
Mon, Aug 19, 13:10 (2 d)
Engine
blob
Format
Raw Data
Handle
19955734
Attached To
rODVPROJECT Group15_PCSC_Project
InputConstruction.cpp
View Options
#include "InputConstruction.h"
#include <cmath>
#include <cassert>
/**
* \brief constructor ...
* @param timeStep ...
*
*/
InputConstruction::InputConstruction(double time_step, int dimension, int order, int number_steps, int write_output_timestep,
const vector<vector<double>>& initial_condition_matrix ,const vector<vector<double>>& changing_matrix, const vector<vector<double>>& past_step_matrix) {
assert(number_steps%write_output_timestep == 0.0);
Timestep = new double;
NumberSteps = new int;
Order = new int;
Dimension = new int;
WriteOutputTimestep = new int;
*Timestep = time_step;
*NumberSteps = number_steps;
*Order = order;
*Dimension = dimension;
*WriteOutputTimestep = write_output_timestep;
const vector<vector<double>> &InitialConditionMatrix = initial_condition_matrix ;
const vector<vector<double>> &ChangingMatrix = changing_matrix;
const vector<vector<double>> &PastStepMatrix = past_step_matrix;
}
InputConstruction::~InputConstruction()
{
delete Timestep;
delete NumberSteps;
delete Order;
delete Dimension;
delete WriteOutputTimestep;
delete InitialConditionMatrix;
delete ChangingMatrix;
delete PastStepMatrix;
}
Event Timeline
Log In to Comment