CosmoCoffee Forum Index CosmoCoffee

 
 FAQFAQ   SearchSearch  MemberlistSmartFeed   MemberlistMemberlist    RegisterRegister 
   ProfileProfile   Log inLog in 
Arxiv New Filter | Bookmarks & clubs | Arxiv ref/author:

a dverk performance issue
 
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software
View previous topic :: View next topic  
Author Message
Erick Almaraz



Joined: 10 Jun 2012
Posts: 24
Affiliation: University of Mexico

PostPosted: February 27 2017  Reply with quote

Hi everybody.

I have been working with a model where the equations of motion for the background can't be solved numerically in CAMB, but they can be solved using mathematica or python. Briefly the situation is the following: I have a system of three ODE y'(1), y'(2), y'(3) whose initial conditions are set by theoretical considerations. Both y(2) and y(3) undergo an initial sudden drop (of eight and 23 orders of magnitude, respectively) and then they evolve smoothly. Whereas this situation does not pose any problem in mathematica or python, I have found that dverk is unable to handle this drop and for that reason the program crashes.

So my question is if there are other ODE solvers that can be incorporated to CAMB, besides dverk. If so, any hint or a link where somebody has done something like that would be appreciated.

Regards
Back to top
View user's profile [ Hidden ]
Erick Almaraz



Joined: 10 Jun 2012
Posts: 24
Affiliation: University of Mexico

PostPosted: March 02 2017  Reply with quote

Hello everbody

Just in case somebody is interested on this topic, I could embed a python script into CAMB. The way I proceeded was to use the instruction

Code:
    call EXECUTE_COMMAND_LINE ("my_python_script arg1 arg2 arg", wait=.true.)


where arg are the input arguments of the python script. So far the program has run perfectly.


Regads
Back to top
View user's profile [ Hidden ]
Display posts from previous:   
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software All times are GMT + 5 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group. Sponsored by WordWeb online dictionary and dictionary software.