Imports the modules and runs the main time loop.
Updates finite-element function before saving them into Paraview and HDF5 format.