Commit Graph
100 Commits
Author SHA1 Message Date
ianjauslin 08ded444b8 Use savefiles in uk 2025-02-10 15:34:03 -05:00
ianjauslin 8a1f3987f4 when reading binary init, only read u unless using the 'resume' command.
In particular, removed the 'init_flow' parameter
2025-02-03 14:11:53 -05:00
ianjauslin 89791be6d6 Print lyapunov if it is the last step 2025-02-03 12:27:16 -05:00
ianjauslin 50c09cf164 Do not sort exponents, and fix norm of flow 2025-02-03 12:08:07 -05:00
ianjauslin 21e8dcdb8a In RK algorithms: do not use kx,ky, use i 2025-02-01 14:12:54 -05:00
ianjauslin e607a4abf9 Ensure that init_flow is used in conjunction with init 2025-02-01 12:15:56 -05:00
ianjauslin 6f0f1749a4 Document flow_init in readme 2025-02-01 12:10:50 -05:00
ianjauslin 03c2d1b02a Fix interruption of lyapunov 2025-02-01 11:53:19 -05:00
ianjauslin d1992eca70 interrupting lyapunov mentioned in README 2025-01-31 21:59:41 -05:00
ianjauslin 06e5b0e0da Allow the Lyapunov computation to be interrupted 2025-01-31 21:58:54 -05:00
ianjauslin 53a0a0ae4c Remove D_epsilon 2025-01-31 20:50:55 -05:00
ianjauslin a47ec7896b Fix bug: every column of tangent flow needs to be evolved 2025-01-31 17:45:25 -05:00
ianjauslin 3fa3a86066 Bug fix 2025-01-31 15:04:41 -05:00
ianjauslin 0244f03d02 Update copyright 2025-01-31 12:01:53 -05:00
ianjauslin b0f82a2412 fix README layout 2025-01-31 11:09:23 -05:00
ianjauslin 170aebfa0c Lyapunov in README 2025-01-31 11:08:20 -05:00
ianjauslin 57df67cc4c Mention lyapunov algorithms in doc 2025-01-31 10:55:41 -05:00
ianjauslin 0f07f025b5 Overhaul of lyapunov exponents 2025-01-31 10:52:40 -05:00
ianjauslin fa52397e87 Correctly deal with complex values in lyapunov exponents documentation 2025-01-27 17:14:46 -05:00
ianjauslin 328f3bd99c New derivation of Lyapunov exponents in doc 2025-01-16 11:42:15 +01:00
ianjauslin acf1c27b1d Details on RK in doc 2024-12-16 16:57:37 -05:00
ianjauslin 9d48b044ac Reorganize doc 2024-12-15 14:49:30 -05:00
ianjauslin 9ec233fed5 Replace init_en with init_enstrophy and init_energy 2024-12-11 15:48:11 -05:00
ianjauslin d81ad18618 Rewrite cost function for adaptive step 2024-11-18 19:11:00 -05:00
ianjauslin 9fa10c8db4 print_alpha 2024-11-07 14:39:03 -05:00
ianjauslin cf48b23d4d Update copyright 2024-10-15 11:47:13 -04:00
ianjauslin c7ff1384e1 Update README 2024-10-15 11:45:28 -04:00
ianjauslin 0404bd0cf0 Print negative values of alpha 2024-10-15 11:41:31 -04:00
ianjauslin 7675148e7d Change order of outputs in enstrophy 2024-10-15 11:36:48 -04:00
ianjauslin f93ada07f0 Fix order of arguments in calloc 2024-10-15 11:31:53 -04:00
ianjauslin 41ff1919f0 Change outputs of enstrophy 2024-10-15 11:28:07 -04:00
ianjauslin 41a5a4ba3f save_state to its own function 2024-03-13 11:24:47 +01:00
ianjauslin 0599f69dc7 Fix lyapunov computation 2024-03-12 01:53:48 +01:00
ianjauslin 198867751d Split real and imag part in jacobian 2024-03-11 23:54:11 +01:00
ianjauslin 9059a24c23 Fix MATSIZE 2024-02-20 10:55:15 -05:00
ianjauslin f9171aa355 Fix average 2024-02-20 10:46:53 -05:00
ianjauslin c284587105 Sort Lyapunov exponents and print more 2024-02-20 09:32:32 -05:00
ianjauslin bf8e4b728e Fix lyapunov 2024-02-19 22:05:30 -05:00
ianjauslin ec98098709 Lyapunov parameters 2024-02-19 21:39:48 -05:00
ianjauslin 1c3f4b9f2f Print Lyapunov exponents 2024-02-19 19:09:26 -05:00
ianjauslin 15bcb8b467 Lyapunov command in main 2024-02-19 19:05:35 -05:00
ianjauslin b31fab8eae Computation of Lyapunov exponents 2024-02-19 19:01:31 -05:00
ianjauslin 89601d19d1 Jacobian of un->un+1 2024-02-19 15:20:19 -05:00
ianjauslin 9ecf4413a5 write ns_step routine that handles all the algorithms 2024-02-19 14:43:04 -05:00
ianjauslin 9fe9e3d96f Jacobian of rhs 2024-02-19 12:20:21 -05:00
ianjauslin 63e983b460 Link openblas 2024-02-19 11:41:47 -05:00
ianjauslin 97a127a8db Document Lyapunov exponents 2024-02-19 11:41:35 -05:00
ianjauslin 9b9734c4c2 switch point to subsubsection 2024-02-18 14:18:02 -05:00
ianjauslin 6c12e47105 Do not override command when using 'resume' 2023-11-03 18:02:12 -04:00
ianjauslin 209ba06cbf memory fix 2023-11-03 17:41:30 -04:00
ianjauslin 16c80d2305 strlen in dstrings.c 2023-11-03 16:48:18 -04:00
ianjauslin f9aac70796 dstring in read_args_from_file 2023-11-03 16:45:51 -04:00
ianjauslin 9d232a8fca dstrings in read_params 2023-11-03 16:42:27 -04:00
ianjauslin 04a15dd2c7 Replace argv strings with dstrings 2023-11-03 16:04:53 -04:00
ianjauslin dd9bd74c83 dynamic strings 2023-11-03 12:25:02 -04:00
ianjauslin 3d94694017 Resume command
Not functional yet: need to deal with memory of argv
2023-11-03 12:08:25 -04:00
ianjauslin 3efdbf4451 Abort on nan 2023-10-10 10:43:24 -04:00
ianjauslin 1ecb4bbe70 Python script to convert bin to txt and back 2023-09-26 13:01:00 -04:00
ianjauslin f68c179038 Error in enstrophy norm for rkf45 and rkbs32 2023-09-19 11:53:34 -04:00
ianjauslin d986f86243 Fix: no power 1/3 in enstrophy norm 2023-09-19 11:51:55 -04:00
ianjauslin 7a0eb20452 Typo in doc 2023-09-17 23:37:14 +02:00
ianjauslin 60e04ac681 keep_en_cst 2023-06-29 16:58:33 -04:00
ianjauslin 9c3ad2c400 Bug with computing averages 2023-06-20 11:07:35 -04:00
ianjauslin 870196ec07 Save utfile and nthreads to savefile 2023-06-14 14:28:03 -04:00
ianjauslin 6066309fa3 nthreads in README 2023-06-14 14:20:07 -04:00
ianjauslin 7ab59aca48 utfile 2023-06-14 14:19:27 -04:00
ianjauslin d15f58b61e Remove unnecessary includes 2023-06-14 12:42:02 -04:00
ianjauslin aeec3ff17b max_delta and adaptive norm in rkf45 and rkbs32 2023-06-14 00:14:17 -04:00
ianjauslin 251426aaaa Select norm in parameter 2023-06-13 23:56:35 -04:00
ianjauslin 3b58896e3b Proper normalization for enstrophy norm 2023-06-13 19:01:37 -04:00
ianjauslin 34b7a0c277 delta_max and fix cabs2 2023-06-13 18:45:19 -04:00
ianjauslin 4ffbe1e978 Use the enstrophy-norm in rkdp54 2023-06-13 17:30:51 -04:00
ianjauslin 814413b6e1 1/k^3 scaling in adaptive RK 2023-06-07 21:02:27 -04:00
ianjauslin 0fc5dce6ed SIGTERM 2023-05-26 17:37:51 -04:00
ianjauslin 8d2af578fd Correct order of output for enstrophy 2023-05-17 18:02:03 -04:00
ianjauslin 051cd84a29 RKDP54 2023-05-17 17:41:00 -04:00
ianjauslin dffa378084 Rename RKBS23 to RKBS32 2023-05-17 16:59:15 -04:00
ianjauslin 5224b9052f RKF45: use fourth order instead of fifth 2023-05-17 16:58:13 -04:00
ianjauslin f57cc317ac RKF45: no not recompute k1 when decreasing step 2023-05-17 16:50:11 -04:00
ianjauslin d069e8c94e RKBS23 2023-05-17 16:47:15 -04:00
ianjauslin c9312c6d16 Adaptive methods: Do not shrink delta when increasing stepsize 2023-05-16 18:08:48 -04:00
ianjauslin dacd5c3651 Adaptive timestep: do nto change delta before all the printing 2023-05-16 17:03:58 -04:00
ianjauslin cf8cdfe12c Use a relative tolerance for adaptive step size 2023-05-16 16:49:50 -04:00
ianjauslin 949b3897c4 exchange en*alpha and en 2023-05-16 00:07:38 -04:00
ianjauslin 5ede4f1084 Fix running averages for adaptive step, and base print_freq and final_time on times 2023-05-16 00:00:18 -04:00
ianjauslin 5db3680b31 RKF45 algorithm 2023-05-15 20:29:06 -04:00
ianjauslin 315e9a98de Fix order of output in README 2023-05-15 17:08:50 -04:00
ianjauslin ad7410a190 Fix README 2023-05-10 19:37:48 -04:00
ianjauslin d2c589cae4 License 2023-05-10 19:33:29 -04:00
ianjauslin 6c10f80695 README 2023-05-10 19:29:49 -04:00
ianjauslin 7c007e9342 Use 'enstrophy' instead of energy, and print enstrophy*alpha 2023-05-10 19:29:31 -04:00
ianjauslin e5a126f45a Replace energy with energy*alpha 2023-05-08 15:04:00 -04:00
ianjauslin 0b6fe9bd6b Minor bug in nsteps for resumption 2023-04-27 10:03:58 -04:00
ianjauslin 4436866d2f Write resume command even when computation concludes 2023-04-26 17:20:38 -04:00
ianjauslin a94c066014 Avoid segfaults for empty param string 2023-04-26 17:15:58 -04:00
ianjauslin aa8825d9d8 parameters to choose rk2 2023-04-26 11:27:03 -04:00
ianjauslin 527365d62e Implement RK2 2023-04-26 11:13:50 -04:00
ianjauslin f7a7a5866c Only use kx>=0 in computation of alpha, energy and enstrophy 2023-04-25 18:16:28 -04:00
ianjauslin d838060265 Remove terms with kx=0 and ky<=0 2023-04-25 18:08:45 -04:00
ianjauslin 519bb72726 running average in statistics file 2023-04-25 16:58:45 -04:00