A device for calculating numerical solutions for partial differential
equations in successive intervals using adaptive meshes, comprises: a
neural network part for producing predictions of gradients at a following
interval based on gradients available from previous intervals, and a mesh
adaptation part, associated with the neural network part, configured for
adapting a mesh over a domain of a respective partial differential
equation using the predictions, such that the mesh adaptively refines
itself about emerging regions of complexity as the partial differential
equation progresses over the successive intervals. The neural network
part succeeds in its predictions since its use herein is equivalent to
using time series function fitting techniques.