In a previous thread @ivanpribec said
In the past I’ve added the
pure
specifier andintent
attributes to a multiphase fluid simulation code (AMR-LBM-OpenMP-2D ), and remember seeing a 20-25 % performance increase (I did perform some minor restructuring, but in no way did I modify the algorithm).