1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2025-02-06 20:58:51 -05:00

info message added

This commit is contained in:
hrocho 2017-12-11 19:53:42 +01:00
parent c13de91c04
commit 8b746903c8

View File

@ -409,6 +409,8 @@ def get_data(Projectile projectile, Material material, Config config = default_c
# constants
max_datapoints = catimac.max_datapoints
max_storage_data = catimac.max_storage_data
logEmin = catimac.logEmin
logEmax = catimac.logEmax
def energy_table(unsigned int i):
if(i<catimac.energy_table.num):
@ -431,3 +433,9 @@ def storage_info():
matter.append([e.first.A,e.first.Z,e.second])
res.append({"projectile":[data.p.A,data.p.Z],"matter":matter})
return res
def catima_info():
print("CATIMA version = 1.0")
print("number of energy points = %g"%max_datapoints)
print("min energy point = 10^%g MeV/u"%logEmin)
print("max energy point = 10^%g MeV/u"%logEmax)