diff +noname/Discretization.m @ 20:c7efff913935

Decoupled plotting and timesteppers. Added possibility of different plot_types. Added functions for printing and plotting solution file content.
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 22 Sep 2015 17:35:58 +0200
parents 16bad7c459da
children ed6a704b028d
line wrap: on
line diff
--- a/+noname/Discretization.m	Tue Sep 22 17:10:51 2015 +0200
+++ b/+noname/Discretization.m	Tue Sep 22 17:35:58 2015 +0200
@@ -28,6 +28,10 @@
         %             if skipped getTimestep should use a precomputed value.
         k = getTimestep(obj, method, cfl)
 
+        % getTimeSnapshot returns a struct which represents the solution in ts at current time.
+        % if ts is empty or 0 a representation of the initial conditions be returned.
+        repr = getTimeSnapshot(obj,ts)
+
 
         % Sets up movie recording to a given file.
         %     saveFrame is a function_handle with no inputs that records the current state
@@ -37,7 +41,8 @@
         % Sets up a plot of the discretisation
         %     update is a function_handle accepting a timestepper that updates the plot to the
         %            state of the timestepper
-        [update,hand] = setupPlot(obj)
+        %     type allows for different kinds of plots. Some special values are used by the lib. 'animate' and 'plot' for example
+        [update,hand] = setupPlot(obj, type)
 
     end