@@ -6,7 +6,7 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
66c ==============================================================
77c
88c Solves a hyperbolic system of conservation laws in one space dimension
9- c of the general form
9+ c of the general form
1010c
1111c capa * q_t + A q_x = psi
1212c
@@ -24,7 +24,7 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
2424c
2525c The user must supply the following subroutines:
2626c
27- c bc1, rp1 subroutines specifying the boundary conditions and
27+ c bc1, rp1 subroutines specifying the boundary conditions and
2828c Riemann solver.
2929c These are described in greater detail below.
3030c
@@ -44,7 +44,7 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
4444c These routines must be declared EXTERNAL in the main program.
4545c For description of the calling sequences, see below.
4646c
47- c Dummy routines b4step1.f and src1.f are available in
47+ c Dummy routines b4step1.f and src1.f are available in
4848c claw/clawpack/1d/lib
4949c
5050c
@@ -74,12 +74,12 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
7474c physical domain. In addition there are mbc grid cells
7575c along each edge of the grid that are used for boundary
7676c conditions.
77- c
78- c q(meqn, 1-mbc:mx+mbc)
77+ c
78+ c q(meqn, 1-mbc:mx+mbc)
7979c On input: initial data at time tstart.
8080c On output: final solution at time tend.
8181c q(m,i) = value of mth component in the i'th cell.
82- c Values within the physical domain are in q(m,i)
82+ c Values within the physical domain are in q(m,i)
8383c for i = 1,2,...,mx
8484c mbc extra cells on each end are needed for boundary conditions
8585c as specified in the routine bc1.
@@ -102,15 +102,15 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
102102c stored in aux(mcapa,i).
103103c In this case we require method(7).ge.mcapa.
104104c
105- c dx = grid spacing in x.
105+ c dx = grid spacing in x.
106106c (for a computation in ax <= x <= bx, set dx = (bx-ax)/mx.)
107107c
108108c tstart = initial time.
109109c
110110c tend = Desired final time (on input).
111111c If tend<tstart, then claw1 returns after a single successful
112112c time step has been taken (single-step mode).
113- c Otherwise, as many steps are taken as needed to reach tend,
113+ c Otherwise, as many steps are taken as needed to reach tend,
114114c up to a maximum of nv(1).
115115c = Actual time reached (on output).
116116c
@@ -152,13 +152,13 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
152152c comes from the previous step, the Courant number will
153153c not in general be exactly equal to the desired value
154154c If the actual Courant number in the next step is
155- c greater than 1, then this step is redone with a
155+ c greater than 1, then this step is redone with a
156156c smaller dt.
157157c
158158c method(2) = 1 if Godunov's method is to be used, with no 2nd order
159159c corrections.
160160c = 2 if second order correction terms are to be added, with
161- c a flux limiter as specified by mthlim.
161+ c a flux limiter as specified by mthlim.
162162c
163163c method(3) is not used in one-dimension.
164164c
@@ -223,7 +223,7 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
223223c If mwork is too small then the program returns with info = 4
224224c and prints the necessary value of mwork to unit 6.
225225c
226- c
226+ c
227227c info = output value yielding error information:
228228c = 0 if normal return.
229229c = 1 if mbc.lt.2
@@ -241,7 +241,7 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
241241c User-supplied subroutines
242242c -------------------------
243243c
244- c bc1 = subroutine that specifies the boundary conditions.
244+ c bc1 = subroutine that specifies the boundary conditions.
245245c This subroutine should extend the values of q from cells
246246c 1:mx to the mbc ghost cells along each edge of the domain.
247247c
@@ -290,7 +290,7 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
290290c are passed in using auxl and auxr. Again, in the standard routines
291291c auxl=auxr=aux in the call to rp1.
292292c
293- c On output,
293+ c On output,
294294c wave(m,mw,i) is the m'th component of the jump across
295295c wave number mw in the ith Riemann problem.
296296c s(mw,i) is the wave speed of wave number mw in the
@@ -307,7 +307,7 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
307307c into the specification of amdq and apdq.
308308c
309309c src1 = subroutine for the source terms that solves the equation
310- c capa * q_t = psi
310+ c capa * q_t = psi
311311c over time dt.
312312c
313313c If method(5)=0 then the equation does not contain a source
@@ -338,7 +338,7 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
338338c other tasks which must be done every time step.
339339c
340340c The form of this subroutine is
341- c
341+ c
342342c -------------------------------------------------
343343c subroutine b4step1 (mbc ,mx ,meqn ,q ,xlower ,dx ,time ,dt ,maux ,aux )
344344c implicit double precision (a-h,o-z)
@@ -353,12 +353,12 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
353353c
354354c Copyright 1994 -- 2002 R. J. LeVeque
355355c
356- c This software is made available for research and instructional use only.
356+ c This software is made available for research and instructional use only.
357357c You may copy and use this software without charge for these non-commercial
358358c purposes, provided that the copyright notice and associated text is
359359c reproduced on all copies. For all other uses (including distribution of
360- c modified versions), please contact the author at the address given below.
361- c
360+ c modified versions), please contact the author at the address given below.
361+ c
362362c *** This software is made available "as is" without any assurance that it
363363c *** will work for your purposes. The software may in fact have defects, so
364364c *** use the software at your own risk.
@@ -370,18 +370,18 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
370370c Author: Randall J. LeVeque
371371c Applied Mathematics
372372c Box 352420
373- c University of Washington,
373+ c University of Washington,
374374c Seattle, WA 98195-2420
375375376376c =========================================================================
377377c
378378c
379379c
380- c
380+ c
381381c ======================================================================
382382c Beginning of claw1 code
383383c ======================================================================
384- c
384+ c
385385
386386 use gauges_module, only: num_gauges, update_gauges,
387387 & print_gauges_and_reset_nextLoc
@@ -435,7 +435,7 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
435435 i0wave = i0f + (mx + 2 * mbc) * meqn
436436 i0s = i0wave + (mx + 2 * mbc) * meqn * mwaves
437437 i0dtdx = i0s + (mx + 2 * mbc) * mwaves
438- i0qwork = i0dtdx + (mx + 2 * mbc)
438+ i0qwork = i0dtdx + (mx + 2 * mbc)
439439 i0amdq = i0qwork + (mx + 2 * mbc) * meqn
440440 i0apdq = i0amdq + (mx + 2 * mbc) * meqn
441441 i0dtdx = i0apdq + (mx + 2 * mbc) * meqn
@@ -463,7 +463,7 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
463463c # save old q in case we need to retake step with smaller dt:
464464 call copyq1(meqn,mbc,mx,q,work(i0qwork))
465465 endif
466- c
466+ c
467467 40 continue
468468 dt2 = dt / 2.d0
469469 thalf = t + dt2 !# midpoint in time for Strang splitting
@@ -532,8 +532,8 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
532532 endif
533533 dtmin = dmin1(dt,dtmin)
534534 dtmax = dmax1(dt,dtmax)
535-
536-
535+
536+
537537 else
538538 dt = dtv(2 )
539539 endif
@@ -563,13 +563,13 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
563563 go to 900
564564 endif
565565 endif
566-
566+
567567 if (.not. topo_finalized) then
568568 ! modify topo using dtopo arrays:
569569 call topo_update(t)
570570 call setaux(mbc,mx,xlower,dx,maux,aux)
571571 endif
572-
572+
573573c
574574c # see if we are done:
575575 nv(2 ) = nv(2 ) + 1
@@ -578,7 +578,7 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
578578 100 continue
579579c
580580 900 continue
581- c
581+ c
582582c # return information
583583c
584584 if (method(1 ).eq. 1 .and. t.lt. tend .and. nv(2 ) .eq. maxn) then
@@ -602,5 +602,5 @@ subroutine claw1(meqn,mwaves,maux,mbc,mx,
602602 call print_gauges_and_reset_nextLoc(ii,meqn)
603603 end do
604604
605- return
605+ return
606606 end
0 commit comments