~fluidity-core/fluidity/sediment_restructure

« back to all changes in this revision

Viewing changes to tests/channel-flow-p0p1/generate_mesh

merge with branch including remap_surface_to_field but then removed this change and approached it a different way which seems to work

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
from optparse import OptionParser
3
 
import sys
4
 
 
5
 
#####################################################################
6
 
# Script starts here.
7
 
optparser=OptionParser(usage='usage: %prog [options] <layers>',
8
 
                       add_help_option=True,
9
 
                       description="""Generate the mesh files for a given"""+
10
 
                       """number of layers of elements in the channel.""")
11
 
 
12
 
(options, argv) = optparser.parse_args()
13
 
 
14
 
try:
15
 
    layers=int(argv[0])
16
 
except:
17
 
    optparser.print_help()
18
 
    sys.exit(1)
19
 
 
20
 
sys.path.append(".")
21
 
 
22
 
import channel_viscous
23
 
 
24
 
channel_viscous.generate_meshfile("channel",layers)