From cedfd8179eacb75257a392a0c4faa5abfa81826f Mon Sep 17 00:00:00 2001 From: Carlisle Wishard Date: Fri, 28 Oct 2022 17:27:51 -0400 Subject: [PATCH] added licensing to all files in examples directory --- examples/Basic_Simulation/cb.in | 9 +++++ .../Basic_Simulation/initial_conditions.py | 11 ++++++ examples/Basic_Simulation/output_reader.py | 11 ++++++ examples/Basic_Simulation/param.in | 9 +++++ examples/Basic_Simulation/pl.in | 9 +++++ examples/Basic_Simulation/tp.in | 9 +++++ examples/Fragmentation/Fragmentation_Movie.py | 15 ++++++-- examples/Fragmentation/cb.in | 9 +++++ examples/Fragmentation/disruption_headon.in | 9 +++++ examples/Fragmentation/hitandrun.in | 9 +++++ .../Fragmentation/param.disruption_headon.in | 9 +++++ examples/Fragmentation/param.hitandrun.in | 9 +++++ .../param.supercatastrophic_off_axis.in | 9 +++++ .../supercatastrophic_off_axis.in | 9 +++++ examples/Fragmentation/tp.in | 9 +++++ examples/Swifter_Swiftest/cb.in | 9 +++++ examples/Swifter_Swiftest/param.swifter.in | 9 +++++ examples/Swifter_Swiftest/param.swiftest.in | 9 +++++ examples/Swifter_Swiftest/pl.swifter.in | 9 +++++ examples/Swifter_Swiftest/pl.swiftest.in | 9 +++++ examples/Swifter_Swiftest/swifter_start.in | 9 +++++ .../Swifter_Swiftest/swifter_swiftest_comp.py | 34 ++++++++++++++++--- examples/Swifter_Swiftest/tp.swifter.in | 9 +++++ examples/Swifter_Swiftest/tp.swiftest.in | 9 +++++ 24 files changed, 245 insertions(+), 6 deletions(-) diff --git a/examples/Basic_Simulation/cb.in b/examples/Basic_Simulation/cb.in index b2cb85c35..29c8a7fca 100644 --- a/examples/Basic_Simulation/cb.in +++ b/examples/Basic_Simulation/cb.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + Sun 39.476926408897626 0.004650467260962157 diff --git a/examples/Basic_Simulation/initial_conditions.py b/examples/Basic_Simulation/initial_conditions.py index 0d587d060..640330f1f 100644 --- a/examples/Basic_Simulation/initial_conditions.py +++ b/examples/Basic_Simulation/initial_conditions.py @@ -1,3 +1,14 @@ +""" + Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh + This file is part of Swiftest. + Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License + as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty + of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + You should have received a copy of the GNU General Public License along with Swiftest. + If not, see: https://www.gnu.org/licenses. +""" + #!/usr/bin/env python3 """ Generates a set of Swiftest input files from initial conditions. diff --git a/examples/Basic_Simulation/output_reader.py b/examples/Basic_Simulation/output_reader.py index 0fe7f09dc..539038291 100644 --- a/examples/Basic_Simulation/output_reader.py +++ b/examples/Basic_Simulation/output_reader.py @@ -1,3 +1,14 @@ +""" + Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh + This file is part of Swiftest. + Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License + as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty + of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + You should have received a copy of the GNU General Public License along with Swiftest. + If not, see: https://www.gnu.org/licenses. +""" + #!/usr/bin/env python3 """ Reads and processes a Swiftest output file. diff --git a/examples/Basic_Simulation/param.in b/examples/Basic_Simulation/param.in index 49b38fa07..bec3573de 100644 --- a/examples/Basic_Simulation/param.in +++ b/examples/Basic_Simulation/param.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + ! VERSION Swiftest parameter input T0 0.0 TSTOP 10 diff --git a/examples/Basic_Simulation/pl.in b/examples/Basic_Simulation/pl.in index eb3723de3..3f18aca0e 100644 --- a/examples/Basic_Simulation/pl.in +++ b/examples/Basic_Simulation/pl.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + 13 Mercury 6.553709809565314146e-06 0.0014751262621647182575 1.6306381826061645943e-05 diff --git a/examples/Basic_Simulation/tp.in b/examples/Basic_Simulation/tp.in index 2c9d6c6c6..162f8c0af 100644 --- a/examples/Basic_Simulation/tp.in +++ b/examples/Basic_Simulation/tp.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + 10 TestParticle_01 1.0288790290699558749 0.088535376967516773994 39.679062610233010844 diff --git a/examples/Fragmentation/Fragmentation_Movie.py b/examples/Fragmentation/Fragmentation_Movie.py index 91ceaa670..3c23a510a 100644 --- a/examples/Fragmentation/Fragmentation_Movie.py +++ b/examples/Fragmentation/Fragmentation_Movie.py @@ -1,3 +1,14 @@ +""" + Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh + This file is part of Swiftest. + Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License + as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty + of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + You should have received a copy of the GNU General Public License along with Swiftest. + If not, see: https://www.gnu.org/licenses. +""" + #!/usr/bin/env python3 """ Generates a movie of a fragmentation event from set of Swiftest output files. @@ -6,8 +17,8 @@ _______ param.in : ASCII text file Swiftest parameter input file. -out.nc : - NetCDF Swiftest output file. +out.nc : NetCDF file + Swiftest output file. Returns ------- diff --git a/examples/Fragmentation/cb.in b/examples/Fragmentation/cb.in index d4c7fe1f7..8766a22ae 100644 --- a/examples/Fragmentation/cb.in +++ b/examples/Fragmentation/cb.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + 0 39.47841760435743 ! G*Mass 0.005 ! Radius diff --git a/examples/Fragmentation/disruption_headon.in b/examples/Fragmentation/disruption_headon.in index badbe6e5c..1f4b208f1 100644 --- a/examples/Fragmentation/disruption_headon.in +++ b/examples/Fragmentation/disruption_headon.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + 2 1 1e-07 0.0009 7e-06 diff --git a/examples/Fragmentation/hitandrun.in b/examples/Fragmentation/hitandrun.in index 45f3654f8..285fc63a2 100644 --- a/examples/Fragmentation/hitandrun.in +++ b/examples/Fragmentation/hitandrun.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + 2 1 1e-07 0.0009 7e-06 diff --git a/examples/Fragmentation/param.disruption_headon.in b/examples/Fragmentation/param.disruption_headon.in index 04a5dcf99..0fd657831 100644 --- a/examples/Fragmentation/param.disruption_headon.in +++ b/examples/Fragmentation/param.disruption_headon.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + T0 0.0e0 TSTOP 0.00001 DT 0.00000001 diff --git a/examples/Fragmentation/param.hitandrun.in b/examples/Fragmentation/param.hitandrun.in index ff67751fb..1bd02166c 100644 --- a/examples/Fragmentation/param.hitandrun.in +++ b/examples/Fragmentation/param.hitandrun.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + T0 0.0e0 TSTOP 0.00001 DT 0.00000001 diff --git a/examples/Fragmentation/param.supercatastrophic_off_axis.in b/examples/Fragmentation/param.supercatastrophic_off_axis.in index fca7b490d..08b5dd71d 100644 --- a/examples/Fragmentation/param.supercatastrophic_off_axis.in +++ b/examples/Fragmentation/param.supercatastrophic_off_axis.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + T0 0.0e0 TSTOP 0.00001 DT 0.00000001 diff --git a/examples/Fragmentation/supercatastrophic_off_axis.in b/examples/Fragmentation/supercatastrophic_off_axis.in index 2c0639e41..03315636d 100644 --- a/examples/Fragmentation/supercatastrophic_off_axis.in +++ b/examples/Fragmentation/supercatastrophic_off_axis.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + 2 1 1e-07 0.0009 7e-06 diff --git a/examples/Fragmentation/tp.in b/examples/Fragmentation/tp.in index 573541ac9..3c6f40630 100644 --- a/examples/Fragmentation/tp.in +++ b/examples/Fragmentation/tp.in @@ -1 +1,10 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + 0 diff --git a/examples/Swifter_Swiftest/cb.in b/examples/Swifter_Swiftest/cb.in index b2cb85c35..29c8a7fca 100644 --- a/examples/Swifter_Swiftest/cb.in +++ b/examples/Swifter_Swiftest/cb.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + Sun 39.476926408897626 0.004650467260962157 diff --git a/examples/Swifter_Swiftest/param.swifter.in b/examples/Swifter_Swiftest/param.swifter.in index 87ee6cc49..7c906f850 100644 --- a/examples/Swifter_Swiftest/param.swifter.in +++ b/examples/Swifter_Swiftest/param.swifter.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + ! VERSION Swiftest parameter input T0 0.0 TSTOP 1000000.0 diff --git a/examples/Swifter_Swiftest/param.swiftest.in b/examples/Swifter_Swiftest/param.swiftest.in index 9255e2d18..36e38c8cd 100644 --- a/examples/Swifter_Swiftest/param.swiftest.in +++ b/examples/Swifter_Swiftest/param.swiftest.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + ! VERSION Swiftest parameter input T0 0.0 TSTOP 1000000.0 diff --git a/examples/Swifter_Swiftest/pl.swifter.in b/examples/Swifter_Swiftest/pl.swifter.in index fba45d579..83b4ef030 100644 --- a/examples/Swifter_Swiftest/pl.swifter.in +++ b/examples/Swifter_Swiftest/pl.swifter.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + 109 0 39.476926408897626 0.0 0.0 0.0 diff --git a/examples/Swifter_Swiftest/pl.swiftest.in b/examples/Swifter_Swiftest/pl.swiftest.in index 8a9ae2ada..f53409e78 100644 --- a/examples/Swifter_Swiftest/pl.swiftest.in +++ b/examples/Swifter_Swiftest/pl.swiftest.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + 108 Mercury 1.6384274523913285e-06 0.0014751249629612916 1.6306381826061646e-05 diff --git a/examples/Swifter_Swiftest/swifter_start.in b/examples/Swifter_Swiftest/swifter_start.in index 9b48002f5..408a4b920 100644 --- a/examples/Swifter_Swiftest/swifter_start.in +++ b/examples/Swifter_Swiftest/swifter_start.in @@ -1,2 +1,11 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + param.swifter.in 2.1554293571575797e-06 diff --git a/examples/Swifter_Swiftest/swifter_swiftest_comp.py b/examples/Swifter_Swiftest/swifter_swiftest_comp.py index b3ba81745..cf7bc70ce 100644 --- a/examples/Swifter_Swiftest/swifter_swiftest_comp.py +++ b/examples/Swifter_Swiftest/swifter_swiftest_comp.py @@ -1,16 +1,42 @@ -import swiftest -import numpy as np -import matplotlib.pyplot as plt -import xarray as xr +""" + Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh + This file is part of Swiftest. + Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License + as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty + of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + You should have received a copy of the GNU General Public License along with Swiftest. + If not, see: https://www.gnu.org/licenses. +""" +#!/usr/bin/env python3 """ Reads and processes a Swiftest output file and a Swifter output file. +Inputs +_______ +param.swifter.in : ASCII text file + Swifter parameter input file. + +param.swiftest.in : ASCII text file + Swiftest parameter input file. + +bin.dat : Binary file. + Swifter output file. + +out.nc : NetCDF file + Swiftest output file. + Returns ------- swifter_swiftest_comp.eps : Encapsulated PostScript file. A figure containing the number of massive bodies and test particles for a Swifter and Swiftest run over time. """ +import swiftest +import numpy as np +import matplotlib.pyplot as plt +import xarray as xr + # Pull in the Swifter Data swifter_sim = swiftest.Simulation(param_file="param.swifter.in", codename="Swifter").ds diff --git a/examples/Swifter_Swiftest/tp.swifter.in b/examples/Swifter_Swiftest/tp.swifter.in index 77316d997..9f1b4e335 100644 --- a/examples/Swifter_Swiftest/tp.swifter.in +++ b/examples/Swifter_Swiftest/tp.swifter.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + 50 159 0.4652499049236185 -1.9252235978846917 -0.15445104676110957 diff --git a/examples/Swifter_Swiftest/tp.swiftest.in b/examples/Swifter_Swiftest/tp.swiftest.in index 527b683fa..e8349c408 100644 --- a/examples/Swifter_Swiftest/tp.swiftest.in +++ b/examples/Swifter_Swiftest/tp.swiftest.in @@ -1,3 +1,12 @@ +!! Copyright 2022 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh +!! This file is part of Swiftest. +!! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +!! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +!! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +!! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +!! You should have received a copy of the GNU General Public License along with Swiftest. +!! If not, see: https://www.gnu.org/licenses. + 50 TestParticle_200 0.4652499049236185 -1.9252235978846917 -0.15445104676110957