<p><b>duda</b> 2010-03-29 11:50:58 -0600 (Mon, 29 Mar 2010)</p><p>1) In the top-level Makefile, add a configuration option <br>
for gfortran <br>
(Makefile) <br>
<br>
2) In src/Makefile, add dependencies among source files <br>
so that a change to one file will trigger the proper <br>
re-compilation of dependent code and the final executable; <br>
currently, it is necessary to 'make clean' followed <br>
by 'make' after changing any source code <br>
(src/Makefile) <br>
<br>
3) Move the namelist declaration in module_grid_params.F <br>
before the initialization of the variable 'pi', since <br>
such declarations should occur before any executable <br>
statements (this was caught by gfortran) <br>
(src/module_grid_params.F) <br>
<br>
<br>
M global_scvt/src/module_grid_params.F<br>
M global_scvt/src/Makefile<br>
M global_scvt/Makefile<br>
</p><hr noshade><pre><font color="gray">Modified: trunk/grid_gen/global_scvt/Makefile
===================================================================
--- trunk/grid_gen/global_scvt/Makefile        2010-03-26 20:17:49 UTC (rev 168)
+++ trunk/grid_gen/global_scvt/Makefile        2010-03-29 17:50:58 UTC (rev 169)
@@ -5,6 +5,13 @@
PROMOTION = -r8
LDFLAGS = -m64 -O3 -fast -ipo -openmp
+#FC = gfortran
+#FFLAGS = -ffree-form -O3 -fopenmp -ffree-line-length-none -fsecond-underscore
+#F77FLAGS = -ffixed-form -O3 -fopenmp -fsecond-underscore
+#CPPFLAGS = -DRKIND=8
+#PROMOTION = -fdefault-real-8
+#LDFLAGS = -O3 -fopenmp
+
#FC = pgf90
#FFLAGS = -Mfree -O3 -mp -byteswapio
#F77FLAGS = -O3 -byteswapio
Modified: trunk/grid_gen/global_scvt/src/Makefile
===================================================================
--- trunk/grid_gen/global_scvt/src/Makefile        2010-03-26 20:17:49 UTC (rev 168)
+++ trunk/grid_gen/global_scvt/src/Makefile        2010-03-29 17:50:58 UTC (rev 169)
@@ -5,6 +5,28 @@
all: $(OBJS)
        $(FC) $(PROMOTION) $(LDFLAGS) -o grid_gen $(OBJS) -L$(NETCDF)/lib -lnetcdf
+
+grid_gen.o: module_grid_params.o module_grid_constants.o module_data_types.o module_grid_gen_utils.o module_voronoi_utils.o STRIPACK.o module_scvt.o module_grid_meta.o
+
+module_grid_gen_utils.o: module_sphere_utilities.o
+
+module_scvt.o: module_data_types.o module_sphere_utilities.o module_voronoi_utils.o module_grid_constants.o module_grid_params.o
+
+module_write_netcdf.o: module_grid_params.o
+
+module_data_types.o:
+
+module_grid_meta.o: module_data_types.o module_grid_constants.o module_sphere_utilities.o module_write_netcdf.o
+
+module_sphere_utilities.o: module_data_types.o
+
+module_grid_constants.o:
+
+module_grid_params.o:
+
+module_voronoi_utils.o: module_grid_constants.o STRIPACK.o
+
+
.F.o:
        cpp -C -P -traditional $(CPPFLAGS) $< > $*.f90
        $(FC) $(FFLAGS) $(PROMOTION) -c $*.f90 -I$(NETCDF)/include
Modified: trunk/grid_gen/global_scvt/src/module_grid_params.F
===================================================================
--- trunk/grid_gen/global_scvt/src/module_grid_params.F        2010-03-26 20:17:49 UTC (rev 168)
+++ trunk/grid_gen/global_scvt/src/module_grid_params.F        2010-03-29 17:50:58 UTC (rev 169)
@@ -15,10 +15,10 @@
integer :: funit
real :: pi
+ namelist /domains/ np, locs_as_xyz, n_scvt_iterations, eps, l2_conv, inf_conv
+
pi = 4.0*atan(1.0)
- namelist /domains/ np, locs_as_xyz, n_scvt_iterations, eps, l2_conv, inf_conv
-
funit = 21
np = 40962
</font>
</pre>