Upgrade

Upgrade

Upgrade means change to the latest version of OpenFPM. Small incompatibilities can arise, please check CHANGELOG.md in the openfpm source folder, to have a list of all the changes. If you want to update without change version, please use the update page.

 
  • Upgrade multiple:Install multiple versions of OpenFPM

  • Upgrade standard: Upgrade to the latest version overwriting the previous version

Upgrade multiple

To upgrade we suggest to always install the new version without overwriting the previous. The advantage of using this solution is that we can easily go back in case of problems. The first step is to save the old condifuration

mv $HOME/openfpm_vars $HOME/openfpm_vars_old

The second step is to install the latest version of OpenFPM choosing a different folder for the dependencies and a different install folder.
(WARNING: Use different folders for dependencies and install folder).
If want to load the old version you will source the old version

source $HOME/openfpm_vars_old

For the new version

source $HOME/openfpm_vars

For compilation of the example codes we use the same concept. If we want to use the old version, we take the example.mk from the old version installation folder. If we want to use the new version we take the example.mk from the new version.

 

Upgrade standard

Upgrade overwriting the old version is simpler but it overwrite the old version, so you cannot go back. The first command load the OpenFPM environment, the second command get the latest update of the current version, the last command upgrade the current version to the lates possible

source $HOME/openfpm_vars
./install -u
./install -n