22
22
//////////////////////////////////////////////////////////////////////////
24
//this file is for testing of the extraction of the points from
32
assert(argc==4 && "Incorrect number of arguments passed" );
33
char read[] = argv[1];
34
char bound[] = argv[2];
35
char write[] = argv[3];
37
char *command1 = malloc(COMMAND_SIZE);
39
printf("MALLOC FAILURE");
44
char command1[] = "python makeShapefile.py; rm test.* ; rm m.txt ; python extractPoints.py GSHHS_c_L1.shp polygon.shp test 5 > m.txt ; cat m.txt";
45
char command2[] = "rm shpTest.geo; python makeGeoFile.py test.shp shpTest";
46
char command3[] = "gmsh -2 shpTest.geo>t.txt ; rm t.txt";
47
char command4[] = "gmsh shpTest.msh";
50
printf("Meshing...\n");
24
//////////////////////////////////////////////////////////////////////////
26
// Generation of boundary representation from arbitrary geophysical
27
// fields and initialisation for anisotropic, unstructured meshing.
29
// Copyright (C) 2011-2013 Dr Adam S. Candy, adam.candy@imperial.ac.uk
31
// This program is free software: you can redistribute it and/or modify
32
// it under the terms of the GNU General Public License as published by
33
// the Free Software Foundation, either version 3 of the License, or
34
// (at your option) any later version.
36
// This program is distributed in the hope that it will be useful,
37
// but WITHOUT ANY WARRANTY; without even the implied warranty of
38
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39
// GNU General Public License for more details.
41
// You should have received a copy of the GNU General Public License
42
// along with this program. If not, see <http://www.gnu.org/licenses/>.
44
//////////////////////////////////////////////////////////////////////////