[mesa-users] The choice of interpolant in interp_1d_lib

Ehsan Moravveji e.moravveji at gmail.com
Mon Dec 1 13:02:03 EST 2014


Dear Bill, 
I followed your instructions on interp_1d/test/src/interp_1d_support, and made sure that the interpolation routines, indeed, worked OK.
Then, I revised my run_star_extras and dropped all “pointer” declaration from my arrays, and that solved the issue. Well, I still wonder where my mistake was, but it is solved now anyway. Now, my opacity profile before and after interpolation just look fine.

The interpolation routines were innocent, I was the sinner ;-)

Thanks again for your help.
Ehsan.



On Nov 30, 2014, at 9:35 PM, Bill Paxton <paxton at kitp.ucsb.edu> wrote:

> 
> On Nov 30, 2014, at 12:29 PM, Ehsan Moravveji wrote:
> 
>> I have tried three approaches, and all of them fail to give me the desired result
> 
> please try starting from one of the examples in the test file I mentioned last time.
> run it to make sure it works as is.
> then edit the test routine to use your data and redo it.  
> start by keeping the number of points the same as in the test -- i.e. only use part of your own data for the initial test.
> so all you are doing is replacing the x and y values in a running example by your values.
> does that fail too?  if so, it suggests problems in your data.
> if not, then try changing the number of points to use all of your data.
> 
> isn't debugging fun!   
> 
> -b
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20141201/994a21c4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: comp-interp-before-after.png
Type: image/png
Size: 50492 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20141201/994a21c4/attachment.png>


More information about the Mesa-users mailing list