Permalink
Please sign in to comment.
Browse files
Removed unnecessary ODE.h file and made iteration a Class function. Not
viable for grid approaches though. Signed-off-by: Schellenberger <schellenberger@inb.uni-luebeck.de>
- Loading branch information...
Showing
with
54 additions
and 68 deletions.
- +17 −2 Main.cpp
- +0 −59 ODE.h
- +15 −0 Thalamic_Column.cpp
- +5 −4 Thalamic_Column.h
- +17 −3 Thalamus.cpp
| @@ -1,59 +0,0 @@ | ||
| -/* | ||
| -* Copyright (c) 2014 Michael Schellenberger Costa | ||
| -* | ||
| -* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| -* of this software and associated documentation files (the "Software"), to deal | ||
| -* in the Software without restriction, including without limitation the rights | ||
| -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| -* copies of the Software, and to permit persons to whom the Software is | ||
| -* furnished to do so, subject to the following conditions: | ||
| -* | ||
| -* The above copyright notice and this permission notice shall be included in | ||
| -* all copies or substantial portions of the Software. | ||
| -* | ||
| -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
| -* THE SOFTWARE. | ||
| -*/ | ||
| - | ||
| -/****************************************************************************************************/ | ||
| -/* Implementation of the ODE solver */ | ||
| -/****************************************************************************************************/ | ||
| -#pragma once | ||
| -#include "Thalamic_Column.h" | ||
| - | ||
| -/****************************************************************************************************/ | ||
| -/* Evaluation of SRK4 */ | ||
| -/****************************************************************************************************/ | ||
| -inline void ODE(Thalamic_Column& Thalamus) { | ||
| - /* First calculating every ith RK moment. Has to be in order, 1th moment first */ | ||
| - for (int i=1; i<=4; ++i) { | ||
| - Thalamus.set_RK(i); | ||
| - } | ||
| - | ||
| - /* Add moments */ | ||
| - Thalamus.add_RK(); | ||
| -} | ||
| -/****************************************************************************************************/ | ||
| -/* end */ | ||
| -/****************************************************************************************************/ | ||
| - | ||
| - | ||
| -/****************************************************************************************************/ | ||
| -/* Parameters for SRK4 integration */ | ||
| -/****************************************************************************************************/ | ||
| -extern const vector<double> B1 = {0, | ||
| - 0.626708569400000081728308032325, | ||
| - 1.7296310295000001389098542858846, | ||
| - 1.2703689705000000831347506391467}; | ||
| -extern const vector<double> B2 = {0, | ||
| - 0.78000033203198970710445792065002, | ||
| - 1.28727807507536762265942797967, | ||
| - 0.44477273249350995909523476257164}; | ||
| -/****************************************************************************************************/ | ||
| -/* end */ | ||
| -/****************************************************************************************************/ |
20
Thalamus.cpp
0 comments on commit
1ea3c06