Compiling Fortran

Mixing of Fortran types occurs, and often results in problems when mixing free-form Fortran with older styles of Fortran, and when using different compilers.

As pointed out at Geek Tricks.

In Fortran 90/95, a “&” at the end of a line, or in the front of a line, is treated as line continuation sign. But in Fortran 77, it has to be a character at the sixth column. In the code I get, most “&”‘s comply to the Fortran 77 format, but some are not. So I move all “&”‘s to the sixth column, and now the code compile with gfortran.

If you want to replace lots ampersands from the ‘first column’ to the ‘sixth column’ on a lot of lines you could use ‘sed’ string editor to do that.

sed 's/^&/ &/g' input.f > output.f

You also need to check for lines which are too long in your input.

Many errors can be suppressed for now, with command such as gfortran -std=legacy output.f -o justwork

Advertisements

The Space Group List Project as a Poster

Would also make a good bed sheet or pillow case…

The Fascination of Crystals and Symmetry

The Space group list project ‘230’ – a collection of examples containing at least one crystal structure for all of the 230 space groups – is now available as a synoptical poster (size DIN A0, 84.1 x 118.9 mm):

Poster_230_The_Space_Group_list_project

Feel free to download and share the PDF!

If you print the poster on canvas you may use it also as a special shower curtain 😉

View original post

Marvelous Machines Multiaxial Machining Mayhem

Impressive Trochoidal milling of titanium blisk using cryogenic tool cooling, this can be used to make a bladed-disk which is free of welded joints.

Demonstrations of 5-axis machining from Daishin Seiki Corporation.

New steel with 17% lower density than iron

A new steel has been developed with a density of just 6.5 grams per cubic centimeter.