optimad / bitpit

Open source library for scientific HPC
http://optimad.github.io/bitpit/
GNU Lesser General Public License v3.0
115 stars 34 forks source link

common: fix initialization order of FileHandler members #437

Closed andrea-iob closed 6 months ago

andrea-iob commented 6 months ago

Fixes the following warning:

In file included from /opt/bitpit/src/common/bitpit_common.hpp:45,
                 from /opt/bitpit/src/common/fileHandler.cpp:30:
/opt/bitpit/src/common/fileHandler.hpp: In constructor 'bitpit::FileHandler::FileHandler()': /opt/bitpit/src/common/fileHandler.hpp:55:31: warning: 'bitpit::FileHandler::parallel' will be initialized after [-Wreorder]
   55 |         bool                  parallel ;       /**< is part of distributed data? */
      |                               ^~~~~~~~
/opt/bitpit/src/common/fileHandler.hpp:53:31: warning:   'int bitpit::FileHandler::counter' [-Wreorder]
   53 |         int                   counter ;        /**< counter for time series ; */