-
Notifications
You must be signed in to change notification settings - Fork 7
First attempt at ODE integration #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
439 commits
Select commit
Hold shift + click to select a range
5496d0f
Merge branch 'ode_team' of github.com:OpenFUSIONToolkit/JPEC into ode…
logan-nc 894db05
DCON - WIP - making some updates to run the MainProgram up to sing_lim!
jhalpern30 09da7a0
DCON - WIP - Sorting out more of the supposed globals
mfairborn23 4286a04
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
mfairborn23 6a6f841
ODE - WIP - adding equil_out functions
logan-nc 8faa74d
Merge branch 'ode_team' of github.com:OpenFUSIONToolkit/JPEC into ode…
logan-nc bab46f8
EQUIL - WIP - work continues on equil_out
logan-nc 9ff45da
ODE - WIP - qfind and gse
ebursch ca1059b
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
ebursch 6d27c26
EQUIL - BUGFIX - Fixed small issue
ebursch 9be9cd2
DCON - WIP - main script should be running up to four_fit calls (adde…
jhalpern30 76307a3
DCON - WIP - Getting rid of globals
mfairborn23 9fe6372
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
mfairborn23 c27b2ab
DCON - WIP - fixed m1 in ode_output
mfairborn23 629ad8b
DCON - WIP - adding some missing struct calls to variables
jhalpern30 368f624
EQUIL - UPDATE - New EquilibriumParameters setup and implemented qfin…
ebursch 577a793
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
ebursch 580a2d2
DCON - WIP - think all the globals are finally gone from ode_output
mfairborn23 87b5032
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
mfairborn23 4171e94
DCON - WIP - fixed some bugs with variables
5328ef3
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jhalpern30 b20533e
Merge branch 'ode_team' of github.com:OpenFUSIONToolkit/JPEC into ode…
f79b838
JPEC - Minor - Fixes typo in top level equil module import
logan-nc 72e6186
EQUIL - Minor - Removed duplicated line
logan-nc 297ec1b
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jhalpern30 c8f9dff
EQUIL - WIP - next iteration of equilibrium_separatrix_find!
logan-nc 1ab76a4
Merge branch 'ode_team' of github.com:OpenFUSIONToolkit/JPEC into ode…
logan-nc 7727447
DCON - IP - small bug fixes in ode
558cf0e
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jhalpern30 00d96a3
EQUIL - BUGFIX - returned comments on equilibrium parameters
ebursch dbc5612
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
ebursch e9c1773
DCON - WIP - more small fixes
fab7e9f
EQUIL - BUGFIX - rmeoved BASE. not needed
ebursch 8988897
Merge branch 'ode_team' of github.com:OpenFUSIONToolkit/JPEC into ode…
c948658
DCON - WIP - storing outputs from fourfit functions (not 100% working…
jhalpern30 389808a
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jhalpern30 af45a38
DCON - BUGFIX - Remove extra 'end'
c8613e9
DCON - WIP - getting rid of unwanted globals and fixing things that w…
mfairborn23 e1d13d8
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
mfairborn23 9f26410
DCON - WIP - small changes
f3dab88
EQUIL - UPDATE - First pass at gse, still need to decide on output se…
ebursch 769288e
DCON - WIP - more small changes
dylan-p-brennan cd4da27
DCON - WIP - Added some AI-generated function headers. We should chec…
mfairborn23 3281c3a
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
mfairborn23 b77d585
EQUIL - UPDATE - Added var to EquilibriumParameters and populated ins…
ebursch b675bc8
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
ebursch 017d616
EQUIL - BUGFIX - Export fixing
ebursch 4e25d8d
EQUIL - UPDATE - Enforced Equilibrium naming convention (no more Equil)
ebursch 89ca920
DCON - WIP - adding Evan/Nik's new equil parameters to sing_find (whi…
jhalpern30 3f4b001
EQUIL - BUGFIX - extrema bug
ebursch 7d19764
EQUIL - WIP - Adds more params
logan-nc eb0e740
DCON - WIP - several smakll changes
dylan-p-brennan a41e926
Merge branch 'ode_team' of github.com:OpenFUSIONToolkit/JPEC into ode…
logan-nc a179686
Merge branch 'ode_team' of github.com:OpenFUSIONToolkit/JPEC into ode…
logan-nc 2274f38
DCON - BUGFIX - Previously filled u with the wrong values. Fixed now
mfairborn23 1086836
DCON -WIP remove non used files
gwanggeunseo acf4a1d
EQUIL - UPDATE - WIP gse hdf5 for plotting implementation
ebursch 2c3508a
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
ebursch c45e955
EQUIL - WIP - typo fix
logan-nc f97411a
DCON - WIP - Remove using JPEC lines (circular logic)
logan-nc d840037
Merge branch 'ode_team' of github.com:OpenFUSIONToolkit/JPEC into ode…
logan-nc f0f08ee
DCON - BUGFIX - AI forgot to initialize odet.index
56ccb42
DCON - MINOR - Added utils.jl to DconMod
8c34487
EQUIL - WIP - typo fix
logan-nc 9526790
Merge branch 'ode_team' of github.com:OpenFUSIONToolkit/JPEC into ode…
logan-nc daa4e14
DCON - WIP - trying to obtain values from the proper structs in ode_f…
mfairborn23 c013dae
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
mfairborn23 d9efb5d
EQUIL - BUGFIX - Equil/Equilibrium issue was overwritten
ebursch 202bff1
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
ebursch 83f1689
DCON - WIP - more small changes
dylan-p-brennan ab7e844
DCON - IP - small fix
dylan-p-brennan 6358b91
DCON - BUGFIX - JPEC.Equilibrium issue which was crashing the project
ebursch a7c8a67
DCON - WIP - added the prefixes to the things in ode_unorm
mfairborn23 97fa82d
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
mfairborn23 412ee07
DCON - WIP - fixed and checked sing_lim against fortran dcon, should …
jhalpern30 150ba0a
DCON - MINOR - cleaning up dcon.jl up to fourfit calls, making sure w…
jhalpern30 3854fdd
DCON - MINOR - some bug fixes and cleaning up spline calls in sing.jl
jhalpern30 f4810ce
Restore the makefile to its original state.
jmlmir369 11e4442
DCON - BUGFIX - fixing up ode_axis_init and adding capability for ql…
jhalpern30 863e5c8
DCON - MINOR - fixes from some of Brendan's comments
jhalpern30 7dcda91
DCON - WIP - updated todo for changing psihigh
logan-nc c9e9eed
Merge branch 'ode_team' of github.com:OpenFUSIONToolkit/JPEC into ode…
logan-nc 93d53d9
direct.f fixed (2pi and index mistake)
jmlmir369 8a222ba
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jmlmir369 a1eaf4f
TEST - BUGFIX - fixed make_docs.yaml syntax
matt-pharr 7b6d26e
TEST - BUGFIX - fixed make_docs.yaml syntax
matt-pharr b70d18c
direct mistake fixed
jmlmir369 eeb6ce6
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jhalpern30 3319515
DCON - WIP - cleanup of ode_test, norm, and fixup. Should be runnabl…
jhalpern30 8e324f8
DCON - MINOR - adding erroring out of ode_run for kin/res_flag
jhalpern30 91ab50f
DCON - MINOR - small bug fixes to get it precompiling again
jhalpern30 70b6b19
Merge branch 'ode_team' into reorg_splines
bclyons12 6444091
DCON - BUG FIX - Minor syntax issues
bclyons12 730cb22
EQUIL-MINOR-makefile error (this might not work in window)
jaesun57 90643d9
EQUIL - MINOR - adding integral in spline
jaesun57 5919785
EQUIL - MINOR - replace the spline to original version
jaesun57 2363ddc
EQUIL - WIP - Inverse equilibrium wip
jaesun57 7df0903
EQUIL - MINOR - MAKE FILE replace
jaesun57 23f6b7e
Merge branch 'ode_team' into reorg_splines
bclyons12 ccb8fb4
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jhalpern30 a471142
DCON - WIP - fixing FourFitVars struct so it compiles again
jhalpern30 2148bdf
DCON - MINOR - small fixes and aesthetics
jhalpern30 e0c942a
DCON - WIP - pretty major overhaul of ode_output functions, they shou…
jhalpern30 b20255a
Merge branch 'ode_team' into reorg_splines
bclyons12 27edf7f
SPLINES - REFACTOR - Create parametric CubicSpline struct
bclyons12 810976d
fspline now can read f coefficient & mistake fix
jmlmir369 ef4842e
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jmlmir369 c2baddb
fspline now can read f coefficient & mistake fix
jmlmir369 f595a40
Update makefile
jmlmir369 d98d461
DCON -WIP fourfit make_matrix working amat,bmat validated
gwanggeunseo 12d2616
DCON - WIP bugfix
gwanggeunseo 11668ae
DCON -WIP matrix validation at fourfit_example2.ipynb
gwanggeunseo b216edd
fourfit A~H works, FGK not yet, fspline mistake fix
jmlmir369 8951b55
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jmlmir369 5b8210e
DCON - WIP - A couple minor changes to ode_ideal_cross and ode_step t…
mfairborn23 675214f
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
mfairborn23 7f997f4
DCON - MINOR - Looks like spline_eval is the correct call for all spl…
mfairborn23 0c40218
Merge branch 'ode_team' into reorg_splines
bclyons12 42eadd4
Finish refactor of CubicSpline
bclyons12 ce6f7c2
Merge branch 'equil_dev' of https://github.com/OpenFUSIONToolkit/JPEC…
jhalpern30 da7201c
Merge branch 'ode_team' into reorg_splines
bclyons12 c08f86e
DCON - WIP - sing_der was missing some important calculations. Fixed.
mfairborn23 b2cb0ed
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
mfairborn23 e697680
NOTEBOOKS - MINOR - Remove cruft causing error
bclyons12 01ff2c6
SPLINES - MINOR - Simplify CubicSpline coding with `similar`
bclyons12 ae7ddd9
Cleaned up ode_output_get_crit comments after validating it with fort…
jhalpern30 966ea08
EQUIL - WIP - allocate and define local arrays.
jaesun57 6e07285
Mistake in Fourierspline.jl fix
jmlmir369 2a89d5b
Update make_docs.yaml
matt-pharr 111f768
Update make_docs.yaml
matt-pharr 62c40e6
Update make_docs.yaml
matt-pharr bdf0ddf
Update make_docs.yaml
matt-pharr 3905c48
Julia-fy BicubicSpline
bclyons12 a5d2abc
Update make_docs.yaml
matt-pharr 7d0166c
Merge branch 'ode_team' into reorg_splines
bclyons12 c2a8bf8
DCON - ENVIRONMENT - Fix missing BandedMatrices
bclyons12 fc60af2
Merge branch 'ode_team' into reorg_splines
bclyons12 3f23e33
BUILD - BUGFIX - fixed overwritten build system
matt-pharr 9f33704
Merge pull request #33 from OpenFUSIONToolkit/ode_patch_test
matt-pharr 7cf97d3
Merge branch 'ode_team' into reorg_splines
bclyons12 da6f071
DCON - WIP - major updates to ode_step and sing_der to make it Julia …
jhalpern30 9ad620c
SPLINES - MINOR - Simplify empty vector initiation
bclyons12 e83f342
SPLINES - REFACTOR - Julia-fy FourierSpline
bclyons12 146f73b
Merge pull request #32 from OpenFUSIONToolkit/reorg_splines
matt-pharr 72a8683
DCON - WIP - some updates to get it to compile. Added dummy ffit vari…
jhalpern30 55fcab7
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jhalpern30 f11787f
Merge origin/main into ode_team
matt-pharr bedf7cd
EQUIL - WIP - transform input coordinates from cartesian to polar.
jaesun57 00ff2e7
EQUIL - WIP - set up radial grid (only "ldp" implemented) others will…
jaesun57 2fb3e4a
EQUIL - WIP - prepare new bicube type for coordinates.
jaesun57 fe64339
EQUIL - WIP - prepare new bicube type for coordinates.
jaesun57 ba44afc
EQUIL - WIP - prepare new bicube type for coordinates.
jaesun57 9067aaa
EQUIL - WIP - rzphi done
jaesun57 f36d4c8
EQUIL - NEW FEATURE - inverse.f
jaesun57 5b001a2
EQUIL - NEW - inverse.f all set
jaesun57 73a9898
DCON - BUGFIX - updating spline calls. Still have error in equilibriu…
jhalpern30 e2b2fe3
DCON - WIP Initial Integration of fourfit.jl with FourFitVars struct …
gwanggeunseo 693ecc9
DCON - WIP - removing the fourfit module and extra lines in fourfit.jl
jhalpern30 cd97525
EQUIL - ERROR - spline fitting type error fixed
jaesun57 873f31c
DCON - WIP - adding errors for non implemented functions
jhalpern30 8b66285
EQUIL- MINOR - remove files
jaesun57 3b1fe35
SPLINES - REFACTOR - Use constructors instead of setup functions
bclyons12 f3d3ba2
DCON - BUG FIX - Add Equilibrium module for setup_equilibrium()
bclyons12 f865a0b
DCON - BUG FIX - Make FourFitVars compatible with fourfit.jl
bclyons12 752ccec
ARCHITECTURE - MINOR - Remove Revise from package Project.toml
bclyons12 37d5d3a
Merge pull request #38 from OpenFUSIONToolkit/fix_spline_setup
jhalpern30 1752768
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jhalpern30 91dbd9c
DCON - WIP - starting some sing_der debugging
jhalpern30 4c58f17
Fspline, spline_example2 fixed
jmlmir369 9a9d20b
TOP - WIP - Removes revise but adds tips for using Revise in README d…
logan-nc 698a6f5
TOP - MINOR - Added link to better Revise docs
logan-nc b7ce3ed
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jhalpern30 9f4eaad
TEST - BUGFIX - Tests not running per-commit
matt-pharr 7072ce8
fourfit_example_fin1 notebook update
jmlmir369 9fe6b4d
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jmlmir369 dccde65
EQUIL - NEW - Chease binary reading with inverse solver
ebursch dd7edc6
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jhalpern30 c5bebad
DCON - WIP - cleaning up fourfit, adding testing (very rough code rn)
jhalpern30 048a55c
DCON - WIP - adding soloviev ideal example and fixing a typo
jhalpern30 e69f97b
EQUIL - BUGFIX - typo
jhalpern30 1aed4b8
Merge branch 'equil_dev' of https://github.com/OpenFUSIONToolkit/JPEC…
jhalpern30 1222e34
Merge branch 'equil_dev' of https://github.com/OpenFUSIONToolkit/JPEC…
jhalpern30 aab2cca
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jhalpern30 12d3094
DCON - WIP - bug fixes for fourfit (I think fully benchmarked but wit…
jhalpern30 7a97cb8
DCON - WIP - cleaning up fourfit and sing_der after some debugging, m…
jhalpern30 0824dd8
DCON - WIP - cleaning up this branch for a pull request
jhalpern30 3d613eb
DCON - WIP - validation from fourfit files
jhalpern30 a423f95
DCON - BUGFIX - minor fixes
jhalpern30 8c0afd1
DCON/EQUIL- MINOR - updating using statements for more minimal diffeq…
jhalpern30 2a31210
EQUIL - DOCUMENTATION - notebook and fortran data documenting equil k…
jhalpern30 4792f79
DCON - WIP - updates to ode solve cleaning up memory, can integrate (…
jhalpern30 2bdcc48
DCON - WIP - large commit of many bugfixes (not super cleaned up) inc…
jhalpern30 91cee64
TEST - WIP - adding skeleton for DCON unit test that need data, fille…
jhalpern30 b3ff398
TEST - WIP - adding some unit tests for ode_fixup
jhalpern30 9c4d3d9
DCON - WIP - current state of integration with unorm and fixup workin…
jhalpern30 c573553
DCON - WIP - moving some debugging functionality to utils
jhalpern30 12d9025
DCON - WIP - code cleanup
jhalpern30 ea6bfc9
DCON - BUGFIX - changed how ode.q is updated in sing_der that was cau…
jhalpern30 7c53d03
TESTS - IMPROVEMENT - adding unit tests for ode_unorm
jhalpern30 cdf1d12
DCON - WIP - small cleanup of fourfit
jhalpern30 cb4041b
DCON - WIP - moved all main interrational integration logic to a call…
jhalpern30 fcff80e
DCON - WIP - first go at implementing ideal rational surface crossing…
jhalpern30 e9df3b8
DCON - WIP - quite a large commit, debugging vmat matrix functions in…
jhalpern30 e6b5a84
DCON - MINOR - replacing splinesmod with spl
jhalpern30 fcb4fdd
DCON - MINOR - cleanups
jhalpern30 a698d1c
DCON - WIP - debugging ua calculation, think its working correctly now
jhalpern30 c5f760a
DCON - WIP - getting rid of second while true loop in ode_run, starti…
jhalpern30 00ea3f0
DCON - WIP - adding initial crit writing capabilities + bugfix
jhalpern30 7b2b432
DCON - WIP - adding sas_flag = true to get DIIID-ideal example working
jhalpern30 0594908
DCON - MINOR - fourfit cleanups
jhalpern30 56bb0ca
DCON - MINOR - massive cleanup to sing_der, function looks so clean n…
jhalpern30 d1c740a
DCON - IMPROVEMENT - added mercier stability calculation, matches wel…
jhalpern30 f0aa513
DCON - WIP - cleanups, adding hdf5 dumping for locstab data
jhalpern30 b9c84db
DCON - MINOR - cleaning up sing.jl
jhalpern30 a5e7b91
EQUIL - MINOR - changing gse file writes to go to where the run direc…
jhalpern30 cfc2919
DCON - WIP - adding vacuum functionality, might be working?
jhalpern30 edb6706
DCON - MINOR - cleanups
jhalpern30 0d61bfa
DCON - WIP - adding output writing to dcon.out, crit.out, and euler.b…
jhalpern30 715fece
DCON - WIP - updating way outputs are written, better support for HDF…
jhalpern30 d8adc12
DCON - WIP - writing outputs to euler.h5/saving in memory for GPEC use
jhalpern30 41c937d
TESTS - IMPROVEMENT - adding spline_eval accuracy checking to unit te…
jhalpern30 7f6f20f
DCON - WIP - writing/saving data exactly from integrator instead of i…
jhalpern30 0774ff6
DOCS - CLEANUP - cleared all jupyter outputs
matt-pharr 984ce6d
DCON - MINOR - adding in some of Brendan's old comments on this PR
jhalpern30 df850d2
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jhalpern30 e5a7613
DCON - MINOR - removing unused files
jhalpern30 ac32bb7
EXAMPLES - MINOR - adding vac.in to DIIID ideal and eulerbinread
jhalpern30 04ef71e
DOCUMENTATION - MINOR - cleaning up unused files (some still exist)
jhalpern30 6e0d939
DCON - BUGFIX - save missing singular psifacs to output
matt-pharr 01128ab
Merge branch 'ode_team' of github.com:OpenFUSIONToolkit/JPEC into ode…
matt-pharr cdb564b
DCON - BUGFIX - removing unecessary things in gitignore/Project.toml,…
jhalpern30 f1d1574
DCON - BUGFIX - added saving of u on sing crosses, increased default …
matt-pharr 2c47a5b
Merge branch 'ode_team' of github.com:OpenFUSIONToolkit/JPEC into ode…
matt-pharr add8378
Merge branch 'main' into ode_team
jhalpern30 d6c2d04
JPEC - MINOR - undoing capitalizing file names, github not picking it…
jhalpern30 a144dfa
Merge branch 'ode_team' of https://github.com/OpenFUSIONToolkit/JPEC …
jhalpern30 b94a9c4
DCON - BUGFIX - case sensitive naming problem
matt-pharr a333535
TESTS - Bugfix - fixed vacuum cd directory, made sure build functions…
matt-pharr c3c2cb0
DCON - BUGFIX - updating odetests to work with the new output logic
jhalpern30 b0b95cf
DOCS - BUGFIX - Fixed docs compiling
matt-pharr 2b0b67b
TEST/DOCS - IMPROVEMENT - Hopeful tests & docs speedup
matt-pharr a2aa28f
DOCS - IMPROVEMENT - Further docs build speedup
matt-pharr 54ef61a
JPEC - CLEANUP - removed suspect anaconda file and added to gitignore
matt-pharr ce3b5f7
DOCS - MINOR - Modernized spline examples
matt-pharr 3b70a82
JPEC - CLEANUP - removed trailing whitespace
matt-pharr 1720be3
EQUILIBRIUM - CLEANUP - removed useless txt copy of direct.jl
matt-pharr 4b61d3d
DOCS - BUGFIX - fixing docs build error
matt-pharr a083ca4
DOCS - BUGFIX - fixing docs build error -- 2nd attempt
matt-pharr ea6955b
DOCS/TEST - MINOR - Cache testing
matt-pharr 8419160
DOCS/TEST - MINOR - Cache improvement
matt-pharr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,15 @@ | ||
| *.mod | ||
| *.dylib | ||
| .vscode | ||
| *.dll | ||
| *.so | ||
| *.o | ||
| *.i | ||
| *.so | ||
| *.out | ||
| *.h5 | ||
| .vscode | ||
| *.DS_Store | ||
| notebooks/*.in | ||
| .gitattributes | ||
| Manifest.toml | ||
| build.log | ||
| docs/build/ | ||
| docs/build/ | ||
| anaconda_projects/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,31 @@ | ||
| name = "JPEC" | ||
| uuid = "462872dd-e066-4d2e-b993-6468b5239634" | ||
| authors = ["Matthew Pharr <matthewcpharr@gmail.com>", "Rithik Banerjee <rb3736@columbia.edu>", "Jaebeom Cho <aspire1019@snu.ac.kr>"] | ||
| authors = ["Matthew Pharr <matthewcpharr@gmail.com>", "Rithik Banerjee <rb3736@columbia.edu>", "Jaebeom Cho <aspire1019@snu.ac.kr>", "Jacob Halpern <jmh2363@columbia.edu>"] | ||
| version = "0.1.0" | ||
| license = 'MIT' | ||
|
|
||
| [deps] | ||
| DiffEqCallbacks = "459566f4-90b8-5000-8ac3-15dfb0a30def" | ||
| Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
| FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" | ||
| HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f" | ||
| LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
| OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed" | ||
| Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
| Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" | ||
| Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" | ||
| TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76" | ||
| Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
|
||
| [compat] | ||
| DiffEqCallbacks = "4.9.0" | ||
| Documenter = "1.14.1" | ||
| FFTW = "1.9.0" | ||
| HDF5 = "0.17.2" | ||
| LinearAlgebra = "1.11.0" | ||
| OrdinaryDiffEq = "6.102.0" | ||
| Pkg = "1.11.0" | ||
| Plots = "1.40.15" | ||
| Test = "1.11.0" | ||
| Printf = "1.11.0" | ||
| TOML = "1.0.3" | ||
| Test = "1.11.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,49 @@ | ||
| # JPEC | ||
| # Perturbed Equilibrium | ||
|
|
||
| This is a work in progress juliafication of the Generalized Perturbed Equilibrium Code suite https://github.com/PrincetonUniversity/GPEC. | ||
|
|
||
| ## Documentation | ||
| ## Documentation Pages | ||
|
|
||
| The WIP documentation can be found [here](https://openfusiontoolkit.github.io/JPEC/dev/). | ||
|
|
||
|
|
||
| ## Developer Notes | ||
|
|
||
| ### Commit messages | ||
| ### GIT Workflow | ||
|
|
||
| All developers need to use Vincent Driessen's [GitFlow](http://nvie.com/posts/a-successful-git-branching-model) workflow when editing the GPEC package. PLEASE READ THE ENTIRE POST. It is short, very thorough, and good for both experienced and new git users. | ||
|
|
||
| The highlights are, | ||
| - There are two permanent branches: master and develop | ||
| - The master branch is only updated for at release ready stages | ||
| - New features should be developed in short-lived (days) branches coming off of and merging back to the development branch. | ||
|
|
||
| Specific instructions are given in the link above as to exactly how to branch and merge these various branches. For example, the --no-ff option should be used when merging in order to keep branch histories. Just follow the examples and you wont go wrong! | ||
|
|
||
| #### Using github | ||
|
|
||
| Please see [this link](https://docs.google.com/document/d/1XAOTz1IV8ErZAAk-iSuEuddNOLB5XcoVZsAbPKRUUuA/edit?usp=sharing) for a guide on how to discuss your code development using github. | ||
|
|
||
| #### Commit messages | ||
|
|
||
| To assist with the process of compiling release notes, please confirm to the commit message format: | ||
| ``` | ||
| CODE - TAG - Detailed message | ||
| ``` | ||
| where CODE is EQUIL, DCON, VAC, etc. and TAGs are short descriptors of the type of commit. Example tags might be WIP (work in progress), MINOR, IMPROVEMENT, BUG FIX, NEW FEATURE, etc. Look through old commits for examples of what tags are commonly used. | ||
| where CODE is EQUIL, DCON, VAC, etc. and TAGs are short descriptors of the type of commit. Example tags might be WIP (work in progress), MINOR, IMPROVEMENT, BUG FIX, NEW FEATURE, etc. Look through old commits for examples of what tags are commonly used. | ||
|
|
||
| Again, this is currently used for the by-hand compilation of release notes. The tags thus need to be human readable but are not strictly inforced to be within some limited set. The objective is to allow a lead developer to skim through commits and pick out only the key new features / bug fixes / improvements to note in the release while not having to read all the work-in-progress or minor changes. | ||
|
|
||
| ### Code Formatting | ||
| ### Julia Tips | ||
|
|
||
| #### Revise | ||
|
|
||
| To retain consistency in code formatting, we request that all PRs include code formatting cleanup before merging. We will make use of [JuliaFormatter.jl](https://domluna.github.io/JuliaFormatter.jl/stable/), which can be used in both Vim and VSCode. For Vim installation, follow the instructions [here](https://github.com/kdheepak/JuliaFormatter.vim). In VSCode, the [Julia](https://www.julia-vscode.org/docs/dev/userguide/formatter/) extension has built-in capabiltiies for JuliaFormatter.jl. The [folder formatter](https://marketplace.visualstudio.com/items?itemName=MichaKaleta.folderformatter&ssr=false#overview) extension allows formatting of all files within a given folder, which can be useful for larger commits. | ||
| When developing and recompiling code often, use Revise.jl to speed up the compile times by only recompiling what is impacted by the changed code. Integrate Revise.jl into your default Julia environment for use across projects, do not directly add it to the Project.toml of this particular project. To install Revise.jl in your global environment, open the Julia REPL using the `julia` command, enter the package manager by pressing `]`, and then `add Revise`: | ||
|
|
||
| The JuliaFormatter.toml file contains the default settings we will use; this should not be changed unless reformatting the entire repository. | ||
| Code | ||
|
|
||
| ### Using github | ||
| $ julia | ||
| julia> ] | ||
| pkg> add Revise | ||
|
|
||
| Please see [this link](https://docs.google.com/document/d/1XAOTz1IV8ErZAAk-iSuEuddNOLB5XcoVZsAbPKRUUuA/edit?usp=sharing) for a guide on how to discuss your code development using github. | ||
| Now, in the top of each Jupyter notebook, you can call `using Revise` at the top of any Jupyter notebook to speed up compile times as you develop and test. Better yet, set up your environement to [use Revise by default](https://timholy.github.io/Revise.jl/stable/config/#Using-Revise-by-default) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| # How to modify build_helpers.jl: | ||
| # 1) Declare build functions for each Fortran codes as 'build_*_fortran()' | ||
| # 2) Add these functions to the results array in build_fortran() | ||
| # 3) Export the functions you want to be accessible from outside | ||
|
|
||
|
|
||
| const parent_dir = joinpath(@__DIR__, "..", "src") | ||
|
|
||
| export build_spline_fortran, build_vacuum_fortran | ||
|
|
||
| function build_fortran() | ||
| ENV["FC"] = get(ENV, "FC", "gfortran") | ||
| # Set OS-dependent flags | ||
| println("Setting up environment for ", Sys.KERNEL) | ||
| if Sys.isapple() | ||
| ENV["LIBS"] = "-framework Accelerate" | ||
| ENV["LIBSUFFIX"] = ".dylib" | ||
| elseif Sys.islinux() | ||
| ENV["LIBS"] = "-lopenblas" | ||
| ENV["LIBSUFFIX"] = ".so" | ||
| elseif Sys.iswindows() | ||
| ENV["LIBS"] = "-lopenblas" | ||
| ENV["LIBSUFFIX"] = ".dll" | ||
| else | ||
| error("Unsupported OS for Fortran build") | ||
| end | ||
| ENV["RECURSFLAG"] = "-frecursive" | ||
| ENV["LEGACYFLAG"] = "-std=legacy" | ||
| ENV["ZEROFLAG"] = "-finit-local-zero" | ||
| ENV["FFLAGS"] = "-fPIC" | ||
| ENV["LDFLAGS"] = "-shared" | ||
|
|
||
| results = [ | ||
| # build_jpec_fortran() add here | ||
| build_spline_fortran(), | ||
| build_vacuum_fortran(), | ||
| ] | ||
|
|
||
| if all(results) | ||
| @info "All Fortran builds succeeded!" | ||
| else | ||
| @error "Some Fortran builds failed." | ||
| end | ||
|
|
||
| end | ||
|
|
||
| function build_spline_fortran() | ||
| dir = joinpath(parent_dir, "Splines", "fortran") | ||
| try | ||
| run(pipeline(`make -C $dir`)) | ||
| @info "Splines-fortran compiled well" | ||
| return true | ||
| catch e | ||
| @error "Failed to build Splines-fortran: $e" | ||
| return false | ||
| end | ||
| end | ||
|
|
||
| function build_vacuum_fortran() | ||
| dir = joinpath(parent_dir, "Vacuum", "fortran") | ||
| try | ||
| run(pipeline(`make -C $dir`)) | ||
| @info "Vacuum-fortran compiled well" | ||
| return true | ||
| catch e | ||
| @error "Failed to build Vacuum-fortran: $e" | ||
| return false | ||
| end | ||
|
|
||
| end | ||
|
|
||
| # Example for including more fortran: | ||
| # | ||
| # function build_jpec_fortran() | ||
| # dir = joinpath(parent_dir, "Gpec", "fortran") | ||
| # try | ||
| # run(pipeline(`make -C $dir`, stdout=DevNull, stderr=DevNull)) | ||
| # println("Gpec-fortran compiled well") | ||
| # return true | ||
| # catch e | ||
| # println("Failed to build Gpec-fortran: $e") | ||
| # return false | ||
| # end | ||
| # end | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| [deps] | ||
| Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
| JPEC = "462872dd-e066-4d2e-b993-6468b5239634" | ||
|
|
||
| [compat] | ||
| Documenter = "1.0" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.