Skip to content

Commit

Permalink
Updating version to 4.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed Dec 29, 2023
1 parent 8532f9c commit 3f9a882
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
[![Version](https://img.shields.io/badge/rebound-v4.0.1-green.svg?style=flat)](https://rebound.readthedocs.org)
[![Version](https://img.shields.io/badge/rebound-v4.0.2-green.svg?style=flat)](https://rebound.readthedocs.org)
[![PyPI](https://badge.fury.io/py/rebound.svg)](https://badge.fury.io/py/rebound)
[![GPL](https://img.shields.io/badge/license-GPL-green.svg?style=flat)](https://github.com/hannorein/rebound/blob/main/LICENSE)
[![Paper](https://img.shields.io/badge/arXiv-1110.4876-green.svg?style=flat)](https://arxiv.org/abs/1110.4876)
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Expand Up @@ -4,6 +4,12 @@ This changelog only includes the most important changes in recent updates. For a

## Version 4.x

### Version 4.0.2
* Fixes an issue where the default Makefiles included white spaces after the SERVER and OPENGL variable definitions. This caused the main Makefile to ignore these settings.
* Added `key_callback` function for customizing user interaction in visualizations.
* Added `simulationarchive_viewer` example.
* Included `-sGL_ENABLE_GET_PROC_ADDRESS` flag that is now needed for the latest version of emscripten.

### Version 4.0.1
* Include missing python packages

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -18,7 +18,7 @@
ghash = subprocess.check_output(["git", "rev-parse", "HEAD"]).decode("ascii")
ghash_arg = "-DGITHASH="+ghash.strip()
except:
ghash_arg = "-DGITHASH=4df2b4603058e7d767aee9c26b586b55a5f4de65" #GITHASHAUTOUPDATE
ghash_arg = "-DGITHASH=8532f9cf49eff9758bf6ed829201a2308e3b2100" #GITHASHAUTOUPDATE

extra_link_args=[]
if sys.platform == 'darwin':
Expand Down Expand Up @@ -83,7 +83,7 @@
long_description = f.read()

setup(name='rebound',
version='4.0.1',
version='4.0.2',
description='An open-source multi-purpose N-body code',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
2 changes: 1 addition & 1 deletion src/rebound.c
Expand Up @@ -66,7 +66,7 @@ void usleep(__int64 usec);
const int reb_max_messages_length = 1024; // needs to be constant expression for array size
const int reb_N_max_messages = 10;
const char* reb_build_str = __DATE__ " " __TIME__; // Date and time build string.
const char* reb_version_str = "4.0.1"; // **VERSIONLINE** This line gets updated automatically. Do not edit manually.
const char* reb_version_str = "4.0.2"; // **VERSIONLINE** This line gets updated automatically. Do not edit manually.
const char* reb_githash_str = STRINGIFY(GITHASH); // This line gets updated automatically. Do not edit manually.

static int reb_simulation_error_message_waiting(struct reb_simulation* const r);
Expand Down
13 changes: 11 additions & 2 deletions update_version.py
Expand Up @@ -38,13 +38,22 @@
with open("setup.py", "w") as f:
f.writelines(setuplines)

with open("web_client/shell_console_rebound.html") as f:
with open("web_client/shell_rebound_webgl.html") as f:
reboundlines = f.readlines()
for i,l in enumerate(reboundlines):
if "<!-- VERSIONLINE -->" in l:
reboundlines[i] = " REBOUND v" + reboundversion + " <!-- VERSIONLINE -->\n"

with open("web_client/shell_console_rebound.html", "w") as f:
with open("web_client/shell_rebound_webgl.html", "w") as f:
f.writelines(reboundlines)

with open("web_client/shell_rebound_console.html") as f:
reboundlines = f.readlines()
for i,l in enumerate(reboundlines):
if "<!-- VERSIONLINE -->" in l:
reboundlines[i] = " REBOUND v" + reboundversion + " <!-- VERSIONLINE -->\n"

with open("web_client/shell_rebound_console.html", "w") as f:
f.writelines(reboundlines)

with open("web_client/shell_rebound.html") as f:
Expand Down
2 changes: 1 addition & 1 deletion version.txt
@@ -1 +1 @@
4.0.1
4.0.2
2 changes: 1 addition & 1 deletion web_client/shell_rebound.html
Expand Up @@ -135,7 +135,7 @@
<div id="overlay" onclick="document.getElementById('overlay-toggle').innerHTML='1'; console.log('no');">
<div id="overlaytext">
<div class="reboundlogo"></div>
REBOUND v4.0.1 <!-- VERSIONLINE -->
REBOUND v4.0.2 <!-- VERSIONLINE -->
</div>
</div>
<div id="overlay-help">
Expand Down
2 changes: 1 addition & 1 deletion web_client/shell_rebound_console.html
Expand Up @@ -117,7 +117,7 @@
<div id="overlay" onclick="document.getElementById('overlay-toggle').innerHTML='1'; console.log('no');">
<div id="overlaytext">
<div class="reboundlogo"></div>
REBOUND v4.0.1 <!-- VERSIONLINE -->
REBOUND v4.0.2 <!-- VERSIONLINE -->
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web_client/shell_rebound_webgl.html
Expand Up @@ -135,7 +135,7 @@
<div id="overlay" onclick="document.getElementById('overlay-toggle').innerHTML='1'; console.log('no');">
<div id="overlaytext">
<div class="reboundlogo"></div>
REBOUND v4.0.1 <!-- VERSIONLINE -->
REBOUND v4.0.2 <!-- VERSIONLINE -->
</div>
</div>
<div id="overlay-help">
Expand Down

0 comments on commit 3f9a882

Please sign in to comment.