Nstrophy/src/constants.cpp

47 lines
1.2 KiB
C++
Raw Normal View History

2023-05-10 19:33:29 -04:00
/*
2024-10-15 11:47:13 -04:00
Copyright 2017-2024 Ian Jauslin
2023-05-10 19:33:29 -04:00
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
2024-02-19 15:20:19 -05:00
#define M_PI 3.14159265358979323846
2023-05-10 19:33:29 -04:00
2023-04-26 11:27:03 -04:00
#define COMMAND_UK 1
#define COMMAND_ENSTROPHY 2
2023-04-26 11:27:03 -04:00
#define COMMAND_QUIET 3
#define COMMAND_RESUME 4
2024-02-19 19:05:35 -05:00
#define COMMAND_LYAPUNOV 5
2023-04-26 11:27:03 -04:00
#define DRIVING_ZERO 1
#define DRIVING_TEST 2
#define DRIVING_FILE 3
#define DRIVING_FILE_TXT 4
#define INIT_RANDOM 1
#define INIT_GAUSSIAN 2
#define INIT_FILE 3
#define INIT_FILE_TXT 4
2023-05-15 20:29:06 -04:00
#define ALGORITHM_RK4 1
2023-04-26 11:27:03 -04:00
#define ALGORITHM_RK2 2
2023-05-15 20:29:06 -04:00
#define ALGORITHM_ADAPTIVE_THRESHOLD 1000
// adaptive algorithms: index > ALGORITHM_ADAPTIVE_THRESHOLD
#define ALGORITHM_RKF45 1001
2023-05-17 17:41:00 -04:00
#define ALGORITHM_RKDP54 1002
#define ALGORITHM_RKBS32 1003
2023-04-26 11:27:03 -04:00
2023-06-13 23:56:35 -04:00
#define NORM_L1 1
#define NORM_k3 2
#define NORM_k32 3
#define NORM_ENSTROPHY 4