Skip to content

Commit

Permalink
Cut down SimpleWaveScript.kranc to be a minimal example
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Jan 28, 2012
1 parent 53e9c9a commit a494bab
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Examples/SimpleWaveScript.kranc
@@ -1,19 +1,15 @@
begin thorn simplewavescript
begin thorn SimpleWaveScript

begin variables
phi pi Euc
phi pi
end variables

begin temporaries
foo bar
end temporaries

begin calculation initial_sine_calc
begin calculation initial_sine_calc scheduled at initial
phi = sin(2*PI*(x-t))
pi = -2*pi*cos(2*PI*(x-t))*if(true,1,0)
pi = -2*pi*cos(2*PI*(x-t))
end calculation

begin calculation calc_rhs
begin calculation calc_rhs scheduled at mol_calcrhs
D_t phi = pi
D_t pi = Euc^ij*D_ij phi
end calculation
Expand Down

0 comments on commit a494bab

Please sign in to comment.