Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMeisrimelModelon committed Jan 24, 2024
1 parent 169fd74 commit 4b5cafb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
20 changes: 7 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ def fortran_extensionlists(self):
NAME = "Assimulo"
AUTHOR = u"C. Winther (Andersson), C. Führer, J. Åkesson, M. Gäfvert"
AUTHOR_EMAIL = "[email protected]"
VERSION = "3.5.0" if version_number_arg == "Default" else version_number_arg
VERSION = "master" if version_number_arg == "Default" else version_number_arg
LICENSE = "LGPL"
URL = "http://www.jmodelica.org/assimulo"
DOWNLOAD_URL = "http://www.jmodelica.org/assimulo"
Expand Down Expand Up @@ -701,18 +701,12 @@ def fortran_extensionlists(self):
together with a C-compiler and a FORTRAN-compiler.
"""


version_txt = 'assimulo'+os.path.sep+'version.txt'
#If a revision is found, always write it!
if revision != "unknown" and revision!="":
with open(version_txt, 'w') as f:
f.write(VERSION+'\n')
f.write("r"+revision)
else:# If it does not, check if the file exists and if not, create the file!
if not os.path.isfile(version_txt):
with open(version_txt, 'w') as f:
f.write(VERSION+'\n')
f.write("unknown")
version_txt = os.path.join('assimulo', 'version.txt')
if revision == "":
revision = "unknown"
with open(version_txt, 'w') as f:
f.write(VERSION + '\n')
f.write("r" + revision)

license_info=[place+os.sep+pck+os.sep+'LICENSE_{}'.format(pck.upper())
for pck in thirdparty_methods for place in ['thirdparty','lib']]
Expand Down
1 change: 1 addition & 0 deletions src/solvers/radar5.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def __init__(self, problem):
self.statistics["nfcnjacs"] = 0 #Number of function evaluations when evaluating the jacobian
self.statistics["nerrfails"] = 0 #Number of step rejections
self.statistics["nlus"] = 0 #Number of LU decompositions
# not currently supported by Assimulo
# self.statistics["nstepstotal"] = 0 #Number of total computed steps (may NOT be equal to nsteps+nerrfail)

#Internal values
Expand Down

0 comments on commit 4b5cafb

Please sign in to comment.