add and use the workspace
This commit is contained in:
16
Makefile
16
Makefile
@@ -11,17 +11,29 @@ genplotting.o: genplotting.f90 Makefile
|
||||
starfield: starfield.f90 Makefile genplotting.o
|
||||
gfortran -Wall $< genplotting.o -o $@
|
||||
|
||||
starfield.png: starfield Makefile
|
||||
./starfield
|
||||
genplot2 -s 512x512 WS/starfield.scratch a.tga
|
||||
convert a.tga $@
|
||||
|
||||
# -----------------------------------------------
|
||||
|
||||
randomwalk: randomwalk.f90 Makefile genplotting.o
|
||||
gfortran -Wall $< genplotting.o -o $@
|
||||
|
||||
randomwalk.png: randomwalk Makefile
|
||||
./randomwalk
|
||||
genplot2 -s 512x512 WS/randomwalk.scratch a.tga
|
||||
convert a.tga $@
|
||||
|
||||
# -----------------------------------------------
|
||||
|
||||
spirale: spirale.f90 Makefile genplotting.o
|
||||
gfortran -Wall $< genplotting.o -o $@
|
||||
|
||||
spirale.png: spirale Makefile
|
||||
./spirale > s.scratch
|
||||
genplot2 -s 512x512 s.scratch a.tga
|
||||
./spirale
|
||||
genplot2 -s 512x512 WS/spirale.scratch a.tga
|
||||
convert a.tga $@
|
||||
|
||||
# -----------------------------------------------
|
||||
|
||||
3
WS/README.md
Normal file
3
WS/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# This is the work space.
|
||||
|
||||
Used to store work files, like `a.scratch` plotting directives.
|
||||
@@ -10,7 +10,7 @@ program randomwalk
|
||||
|
||||
write (0, '(A)') "----[ genplotting randomwalk ]----"
|
||||
call srand(time())
|
||||
call genp_init (0, 'randomwalk.scratch')
|
||||
call genp_init (0, 'WS/randomwalk.scratch')
|
||||
do foo=1, 51
|
||||
col = 2 + mod(foo, 4)
|
||||
call do_randomwalk(42, col)
|
||||
|
||||
@@ -8,7 +8,7 @@ program spirale
|
||||
|
||||
write (0, '(A)') "----[ genplotting spirale ]----"
|
||||
|
||||
call genp_init (0, 's.scratch')
|
||||
call genp_init (0, 'WS/spirale.scratch')
|
||||
call do_spirale (1337, 0.51, 0.0666, 0.7)
|
||||
call genp_end (0)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ program starfield
|
||||
use genplotting
|
||||
implicit none
|
||||
write (0, '(A)') "----[ genplotting starfield ]----"
|
||||
call genp_init (0, 'starfield.scratch')
|
||||
call genp_init (0, 'WS/starfield.scratch')
|
||||
call do_starfield (451)
|
||||
call genp_end (0)
|
||||
contains
|
||||
|
||||
Reference in New Issue
Block a user