[Mesa-users] Syntax error in forall statement

Josiah Schwab jwschwab at ucsc.edu
Sun Jul 1 21:56:45 EDT 2018


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



More information about the Mesa-users mailing list