Commit 3c475c51 authored by incardon's avatar incardon

Fixing CYGWIN installation

parent 34449ccd
This Package contain the examples. In order to compile the examples go in the root folder where you installed
OpenFPM (example /usr/local/OpenFPM_install) and copy from there the file example.mk
OpenFPM (example the defaukt would be /usr/local/openfpm_pdata/include) and copy from there the file example.mk
compile the examples with
......
......@@ -478,7 +478,6 @@ int main(int argc, char* argv[])
// calculate forces or a(tn + 1) Step 2
calc_forces(vd,NN,sigma12,sigma6,r_cut*r_cut);
// Integrate the velocity Step 3
auto it4 = vd.getDomainIterator();
......@@ -494,33 +493,33 @@ int main(int argc, char* argv[])
++it4;
}
// After every iteration collect some statistic about the configuration
if (i % 100 == 0)
{
// We write the particle position for visualization (Without ghost)
vd.deleteGhost();
vd.write("particles_",f);
// we resync the ghost
vd.ghost_get<>();
// We calculate the energy
double energy = calc_energy(vd,NN,sigma12,sigma6,r_cut*r_cut);
auto & vcl = create_vcluster();
vcl.sum(energy);
vcl.execute();
// we save the energy calculated at time step i c contain the time-step y contain the energy
x.add(i);
y.add({energy});
// We also print on terminal the value of the energy
// only one processor (master) write on terminal
if (vcl.getProcessUnitID() == 0)
std::cout << "Energy: " << energy << std::endl;
f++;
}
// After every iteration collect some statistic about the configuration
if (i % 100 == 0)
{
// We write the particle position for visualization (Without ghost)
vd.deleteGhost();
vd.write("particles_",f);
// we resync the ghost
vd.ghost_get<>();
// We calculate the energy
double energy = calc_energy(vd,NN,sigma12,sigma6,r_cut*r_cut);
auto & vcl = create_vcluster();
vcl.sum(energy);
vcl.execute();
// we save the energy calculated at time step i c contain the time-step y contain the energy
x.add(i);
y.add({energy});
// We also print on terminal the value of the energy
// only one processor (master) write on terminal
if (vcl.getProcessUnitID() == 0)
std::cout << "Energy: " << energy << std::endl;
f++;
}
}
//! \cond [md steps] \endcond
......
......@@ -541,6 +541,9 @@ bash_library="$bash_library\""
##### Writing openfpm_vars file
# in cygwin we have to add to PATH additional directories
bash_path="$i_dir/BOOST/bin:$i_dir/HDF5/bin:$bash_path"
echo "$bash_path" > $HOME/openfpm_vars
echo "$bash_library" >> $HOME/openfpm_vars
......
openfpm.mpi-cbg.de/upload/upgrade_210
openfpm.mpi-cbg.de/upload/upgrade_200
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment