[Users] Compile question
Guy Pitman
guy.pitman at bigpond.com
Sun Feb 5 19:08:33 CST 2017
Hi Ian,
I ran the following command ./simfactory/bin/sim build --mdbkey make 'make -j2' --thornlist=kranc.th <http://kranc.th/> with the attached Thornlist, which included the CT_Dust Kranc thorn, and then ran
./simfactory/bin/sim submit static_tov --parfile=par/static_tov_small.par --procs=1 --walltime=8:0:0 with the attached parameter file, which also includes CT_Dust , but when I look at the output in ~/simulations/static_tov/output-0003, the static_tov_small.par which I assume has been copied from the par directory has CT_Dust removed? The static_tov.out file also has no reference to CT_Dust. Can you see what I am doing wrong?
Regards
Guy
> On 6 Feb 2017, at 7:21 am, Ian Hinder <ian.hinder at aei.mpg.de> wrote:
>
>
> On 3 Feb 2017, at 00:34, Guy <guy.pitman at bigpond.com <mailto:guy.pitman at bigpond.com>> wrote:
>
>> By pointer I meant the path to the KrancExample SimpleWave was added at the end of the Thornlist
>>
>> echo 'KrancNumericalTools/GenericFD
>> KrancExamples/SimpleWave' >> kranc.th <http://kranc.th/>
>> I can understand that this compiles this Example , together with some required thorns.
>
> Yes. The thornlist is a file containing a list of the thorns to include in the configuration.
>
>
>
>>
>>>> Without knowing what all of the individual thorns are doing, is there a risk that
>>>> the thornlist that I made up for my Kranccode example (which I did by gradually adding groups of thorns based on error messages) could be incompatible?
>>> I think I'm not following. What are you trying to achieve? If you want to follow along the Kranc tutorial, then you only need the thornlist in that tutorial; you shouldn't need any extra thorns. Since Cactus doesn't compile out-of-the-box on Mac OS, the only change you should need to make is to compile with simfactory instead of with make. This doesn't mean using the einsteintoolkit.th <http://einsteintoolkit.th/> thornlist; you would still use the thornlist from the tutorial. For example, you could replace
>>>
>>> make kranc-config THORNLIST=kranc.th <http://kranc.th/> PROMPT=no
>>>
>>> with
>>>
>>> sim build kranc --thornlist kranc.th <http://kranc.th/>
>>>
>> I guess I am trying to understand the relationship between Kranc thorns as in the examples and other thorns - now that I know where to look for the latter I will probably be able to work it out - presumably it only makes sense to combine certain combinations of thorns , and the example Kranc thorns require specific thorns to be present, but if you add others in to the Thornlist this may change behaviour.
>
> Yes.
>
>> I am trying to understand how one would go about building a new simulation combining existing thorns and new Kranc thorns that would work together. For example would it make sense to combine more than one Kranc thorn in the thornlist?
>
> Absolutely; Cactus is extremely modular. Note that just because a thorn is in the thornlist, and hence in the executable, that doesn't mean that it will be activated at runtime. That depends on the parameter file. The parameter file that you give to cactus described which thorns to activate (the ActiveThorns lines), and those are the ones that run as part of the simulation. Usually, a large number of thorns are needed. For example, there will probably be a thorn to set initial data, another to evolve the equations, and maybe some thorns to compute analysis quantities. Depending on the application, these may all be in one thorn, or they may be distributed. For example, for a binary black hole evolution, the TwoPunctures thorn computes the initial data, ML_BSSN evolves the metric, and WeylScal4 computes the gravitational radiation via Psi4. Both ML_BSSN and WeylScal4 are actually Kranc thorns.
>
> --
> Ian Hinder
> http://members.aei.mpg.de/ianhin <http://members.aei.mpg.de/ianhin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.einsteintoolkit.org/pipermail/users/attachments/20170206/69e03dcc/attachment-0003.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kranc.th
Type: application/octet-stream
Size: 5716 bytes
Desc: not available
Url : http://lists.einsteintoolkit.org/pipermail/users/attachments/20170206/69e03dcc/attachment-0002.obj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.einsteintoolkit.org/pipermail/users/attachments/20170206/69e03dcc/attachment-0004.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: static_tov_small.par
Type: application/octet-stream
Size: 6335 bytes
Desc: not available
Url : http://lists.einsteintoolkit.org/pipermail/users/attachments/20170206/69e03dcc/attachment-0003.obj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.einsteintoolkit.org/pipermail/users/attachments/20170206/69e03dcc/attachment-0005.html
More information about the Users
mailing list