Skip to content

Commit 541e0ab

Browse files
committed
Add page reference for Courant condition
1 parent c7eca9b commit 541e0ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wave.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ void Wave::init( Configf& configf ) {
7777

7878
//Validate (0 < p <= 1/sqrt(2)), NOTE: there is a typo after A.13 in Rennie 2001, see, A. R. Mitchell.
7979
//Computational methods in partial differential equations. John Wiley & Sons, London, 1969.
80+
//The general formula for the maximum value of p is given in page 205 of the book reference above.
8081
if( sqrt(p2) > 1.0/sqrt(2.0)) {
8182
cerr << "Wave equation with gamma: " << gamma << " axonal range: " << range << endl;
8283
cerr << "and deltat: " << deltat << " deltax: " << deltax << endl;

0 commit comments

Comments
 (0)