Friday, 22 March 2019

Fortran error: Syntax error, found '::' when expecting one of: => ( :

When you try to use a variable from a module to local function, you may get following error.

Syntax error, found '::' when expecting one of: => ( :

What is the problem? Done something wrong in using ONLY option in Fortran.

Here is a detailed answer on how to use DATA from other modules.

https://stackoverflow.com/questions/1240510/how-do-you-use-fortran-90-module-data

This means that you have used "::" instead of just ":".

After compiling this, I got following error.

Name in only-list does not exist or is not accessible.   [variable_name]
      USE module_name, ONLY : variable_name

No comments:

Post a Comment

Reason for the Maximum index for Augmentation-charges (SET IRDMAX)" error in OUTCAR file: VASP Calculation.

 "The Maximum index for Augmentation-charges (SET IRDMAX)" error is most-likely due to parallelization issues.  To check this, try...