concept intent in category fortran

appears as: intent, intent
Modern Fortran: Building efficient parallel applications

This is an excerpt from Manning's book Modern Fortran: Building efficient parallel applications.

Ideally, your code should be clear enough that it doesn’t need any comments. However, this is often not possible, and most programs need at least some comments. Use your best judgment. If the intent isn’t obvious from the code itself, describe it in comments.

Next, we declare the arguments much like we did for the main program, except that here we also have an additional attribute, intent(in). This attribute indicates to the compiler—and to the programmer reading the code—what the intent of the argument is. Here, intent(in) means that the variables a and b are to be provided by the calling program or procedure, and their values won’t change inside this function.