Mountains

Mountains

Thursday, April 5, 2012

Intel Ruins Things

I have a little subroutine in Igor that I use to calculate gas solubilities. I'm using it to make some nice plots for a presentation I'm giving in a few weeks. A function that calls it kept throwing an error when it reached Xenon. Every other gas was fine. I could change the order and number of gases, but Xenon refused to calculate. The debugger claimed that the output wave didn't exist.

I sipped my coffee and squinted.

 What was wrong with this stupid code?

Before:

        Helium=HL(x,0)
Neon=HL(x,1)
Argon=HL(x,2)
Krypton=HL(x,3)
Xeon=HL(x,4)
Radon=HL(x,5)
Nitrogen=HL(x,6)


After:



        Helium=HL(x,0)
Neon=HL(x,1)
Argon=HL(x,2)
Krypton=HL(x,3)
Xenon=HL(x,4)
Radon=HL(x,5)
Nitrogen=HL(x,6)

1 comment:

Leave a message after the tone...