[mesa-users] Could run_star_extras.f work in the binary module?

Bill Paxton paxton at kitp.ucsb.edu
Mon Dec 1 12:38:45 EST 2014


Also keep in mind that you need to convert the 'id' arg to a pointer 's' by this little sequence at the start of your run_star_extras routine.

         type (star_info), pointer :: s
         ierr = 0
         call star_ptr(id, s, ierr)
         if (ierr /= 0) return

If you forget to do this, s is uninitialized -- the compiler is your friend!  it is a very useful warning.

Good Luck,
Bill





On Dec 1, 2014, at 9:29 AM, Robert FARMER wrote:

> Hi
> "../src/run_star_extras.f:51:0: warning: 's' is used uninitialized in this function [-Wuninitialized]".
> 
> Thats only a warning and maybe it can be ignored. Can you send your run_star_extras.f and run_binary_extras.f please? Its possible you've not set the s pointer properly but i cant tell from the information you've provided.
> 
> Rob
> 
> 
> 
> On Sun, Nov 30, 2014 at 6:40 PM, jiakun1219 <jiakun1219 at 163.com> wrote:
> Dear all,
> When to evolve a binary system use the binary module in MESA,
> there are run_star_extras.f and run_binary_extras.f in the src document.
> When I add the use_other_wind in the run_star_extras.f and ./mk, it warning as:
> "../src/run_star_extras.f:51:0: warning: 's' is used uninitialized in this function [-Wuninitialized]".
> But the use_other_wind in star module is OK, so run_star_extras.f could not work in the binary module?
> Thank you very much!
> Sincerely,
> Jia Kun
> 
> 
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> mesa-users mailing list
> mesa-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mesa-users
> 
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk_______________________________________________
> mesa-users mailing list
> mesa-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mesa-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20141201/0fe5e5d4/attachment.html>


More information about the Mesa-users mailing list