It is currently Mon Dec 09, 2024 7:29 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Bug in gen_DM_source.cc
PostPosted: Fri Jul 10, 2015 5:21 am 
Offline

Joined: Thu Jun 11, 2015 8:41 am
Posts: 7
There is a bug in latest versions of GALPROP in file gen_DM_source.cc:
Row 136, we have:
Code:
   pow(DM_profile_av(galaxy.x[ix], galaxy.y[ix], galaxy.z[iz], galaxy.dx, galaxy.dy, galaxy.dz, dzz)/DMmass,2)

This coordinate:
Code:
galaxy.y[ix]

is wrong.
Evidently, it must be:
Code:
   pow(DM_profile_av(galaxy.x[ix], galaxy.y[iy], galaxy.z[iz], galaxy.dx, galaxy.dy, galaxy.dz, dzz)/DMmass,2)

If someone have used this file, please fix a bug and check your results again.

File with bug fixed is attached.


Attachments:
gen_DM_source.cc [10.27 KiB]
Downloaded 1551 times

_________________
Ruslan Budaev
NRNU MEPhI
Top
 Profile  
 
PostPosted: Fri Jul 10, 2015 5:29 am 
Offline

Joined: Wed May 17, 2006 7:02 am
Posts: 285
Location: MPE Garching
thanks, I will fix it in the next release.

_________________
Andy Strong, MPE


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group