[Mesa-users] Filename expansion causing line truncation compiler warnings/errors
Warrick Ball
W.H.Ball at bham.ac.uk
Fri Mar 1 09:34:56 EST 2019
Hi Aaron,
That's fixed it. Thanks!
W
------------
Warrick Ball
Postdoc, School of Physics and Astronomy
University of Birmingham, Edgbaston, Birmingham B15 2TT
W.H.Ball at bham.ac.uk
+44 (0)121 414 4552
On Fri, 1 Mar 2019, aaron.dotter at gmail.com wrote:
> Hi Warrick,
>
> gfortran defaults to line length of 132 characters for .f90 and 72 for .f. gfortran flags of the sort -ffree-line-length-none and -ffixed-line-length-none should set you right.
>
> Aaron
>
> On Fri, 1 Mar 2019 at 6:15 am Warrick Ball via Mesa-users <mesa-users at lists.mesastar.org> wrote:
> Hi everyone,
>
> I'm pretty sure this issue has been solved before but I can't seem to find
> it in the MESA Users' archive. I've installed MESA on a cluster where the
> users are issue folders with fairly long paths. When these are expanded
> in some of the MESA macros (usually `mesa_error(__FILE__,__LINE__)`), the
> line then exceeds the accepted line length and errors abound. For
> example, I've currently got an astero work folder where I get
>
> $ ./mk
> gfortran -Wno-uninitialized -fno-range-check -fmax-errors=12 -fprotect-parens -fno-sign-zero -fbacktrace -ggdb -finit-real=snan -fopenmp -fbounds-check -Wuninitialized -Warray-bounds
> -I/rds/projects/2017/ballwh-stellar-modelling/mesa/10398/include -c -ffree-form -x f95-cpp-input -I/rds/projects/2017/ballwh-stellar-modelling/mesa/10398/star/astero/defaults
> /rds/projects/2017/ballwh-stellar-modelling/mesa/10398/star/astero/src/astero_data.f
> /rds/projects/2017/ballwh-stellar-modelling/mesa/10398/star/astero/src/astero_data.f:851:132:
>
> if (ierr /= 0) call mesa_error(__FILE__,__LINE__)
> 1
> Error: Line truncated at (1) [-Werror=line-truncation]
> /rds/projects/2017/ballwh-stellar-modelling/mesa/10398/star/astero/src/astero_data.f:851:43:
>
> if (ierr /= 0) call mesa_error(__FILE__,__LINE__)
> 1
> Error: Missing ')' in statement at or before (1)
> ...
>
> and then a bunch more of the same. (These issues are a bit strange
> because it doesn't *look* like the line is too long but it is once
> __FILE__ and __LINE__ are expanded.)
>
> Which is the relevant flag to change in the makefile, and to what?
> Unfortunately, just relocating to a shorter path isn't particularly easy.
>
> Cheers,
> Warrick
>
>
>
>
> ------------
> Warrick Ball
> Postdoc, School of Physics and Astronomy
> University of Birmingham, Edgbaston, Birmingham B15 2TT
> W.H.Ball at bham.ac.uk
> +44 (0)121 414 4552
>
> _______________________________________________
> mesa-users at lists.mesastar.org
> https://lists.mesastar.org/mailman/listinfo/mesa-users
>
>
>
More information about the Mesa-users
mailing list