[Mesa-users] Syntax error in forall statement
Gehrman, Thomas Charles
thomas.gehrman at mnsu.edu
Mon Jul 2 13:35:00 EDT 2018
I'll remember next time when I have a question to not take a picture, but to put it in plain text. I just wanted to say thank you! I have been trying to figure this out for awhile!
Best regards,
Thomas
________________________________
From: Josiah Schwab <jwschwab at ucsc.edu>
Sent: Sunday, July 1, 2018 8:56:45 PM
To: Gehrman, Thomas Charles
Cc: mesa-users at lists.mesastar.org
Subject: Re: [Mesa-users] Syntax error in forall statement
Hi Thomas,
> I'm having a problem solving a syntax error with my forall
> statement. What could be wrong with the parenthesis? That's where it
> seems to be indicating the error. I have attached my
> run_star_extras.f, the inlist I'm working with, an image showing my
> syntax error, and other_am_mixing.f90 where I grabbed and modified the
> code.
As Rob mentioned, it is far better to send error messages in plain text.
(This way took 5.5 MB to send a few lines of text and was hard to view.)
But kudos for including your files; it was easy to reproduce the error.
That said, this is a confusing error message from gfortran. The issue
is that you didn't define the variable k and that am_nu is not a member
of the star info structure. That first one is on you, but the second
one is on us because the included example is out of date.
I believe the equivalent variable is now called am_nu_j. (I think the
change happened because there is a new am_nu_omega variable used in some
of the time-smoothed rotation options.)
We'll update the example in other_am_mixing.f90.
Josiah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20180702/97780cf9/attachment.html>
More information about the Mesa-users
mailing list