[mesa-users] de-testify test suite

Amber Lauer alauer1 at tigers.lsu.edu
Wed Sep 10 19:38:42 EDT 2014


Thanks Francis, on ubuntu 14.04 the following command worked to remove the
mesa_dir reference from all inlists in the entire test suite when called
from inside the test_suite directory:


sed -ie '\|mesa_dir|d' ./*/inlist

I also had to remove the reference in the makefiles, which was done thusly:

sed -ie '\|MESA_DIR|d' ./*/make/makefile

There are .mod and other default files that sometimes are referred to
directly instead of using the environment variable, I'll still have to do
those by hand, but this saved me a bunch of time.

On Wed, Sep 10, 2014 at 6:21 PM, Amber Lauer <alauer1 at tigers.lsu.edu> wrote:

> well, I am trying to get a better feel for all that MESA is capable of and
> really become a 'poweruser', and I was told to always start with the cases
> in the test suite, that they should be the basis for any new scenarios. But
> also, we don't want to use the main copy of the test suite, better to keep
> it clean so I am working with a copy.
>
> On Tue, Sep 9, 2014 at 11:43 PM, Francis Timmes <fxt44 at mac.com> wrote:
>
>> one can delete the entire line with
>>
>> sed -ie '\|mesa_dir|d' inlist
>>
>> fxt
>>
>>
>>
>>
>>
>> On Sep 9, 2014, at 8:48 PM, Richard Townsend <townsend at astro.wisc.edu>
>> wrote:
>>
>> > Hi Amber —
>> >
>> > How about this:
>> >
>> > sed -e ’s%\.\./\.\./\.\./%mesa_is_awesome%’ <filename>
>> >
>> > cheers,
>> >
>> > Rich
>> >
>> > On Sep 9, 2014, at 9:15 PM, Amber Lauer <alauer1 at tigers.lsu.edu> wrote:
>> >
>> >> Hi all, I am attempting to modify the test suite to be run from
>> another folder so I can bend and mold it to my will. I want to remove the
>> reference to the mesa dir location, I believe the line is mesa_dir =
>> '../../..'. At the moment I am stuck doing it by hand each time I compile a
>> new case, but I would like to do it in bulk. I tried to learn a little
>> about the 'sed' utility, but it didn't like the /'s and ..'s in the
>> command, even when I used delimiters (I tried several). Either that or my
>> syntax was off altogether.
>> >>
>> >> --
>> >> Amber Lauer. M.S. Physics
>> >> PhD Student,
>> >> Graduate School of Physics,
>> >> Louisiana State University
>> >>
>> ------------------------------------------------------------------------------
>> >> Want excitement?
>> >> Manually upgrade your production database.
>> >> When you want reliability, choose Perforce
>> >> Perforce version control. Predictably reliable.
>> >>
>> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk_______________________________________________
>> >> mesa-users mailing list
>> >> mesa-users at lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/mesa-users
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Want excitement?
>> > Manually upgrade your production database.
>> > When you want reliability, choose Perforce
>> > Perforce version control. Predictably reliable.
>> >
>> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk_______________________________________________
>> > mesa-users mailing list
>> > mesa-users at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/mesa-users
>>
>>
>
>
> --
> Amber Lauer. M.S. Physics
> PhD Student,
> Graduate School of Physics,
> Louisiana State University
>



-- 
Amber Lauer. M.S. Physics
PhD Student,
Graduate School of Physics,
Louisiana State University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20140910/ce0a7f5c/attachment.html>


More information about the Mesa-users mailing list