[GRASS-SVN] r55242 - grass-addons/grass7/raster/r.damflood
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 27 00:51:11 PST 2013
Author: robertomarzocchi
Date: 2013-02-27 00:51:11 -0800 (Wed, 27 Feb 2013)
New Revision: 55242
Modified:
grass-addons/grass7/raster/r.damflood/main.c
grass-addons/grass7/raster/r.damflood/r.damflood.html
Log:
2 bugs corrected (main.c VMAX output writing) and html compilation errors
Modified: grass-addons/grass7/raster/r.damflood/main.c
===================================================================
--- grass-addons/grass7/raster/r.damflood/main.c 2013-02-27 08:01:56 UTC (rev 55241)
+++ grass-addons/grass7/raster/r.damflood/main.c 2013-02-27 08:51:11 UTC (rev 55242)
@@ -1149,8 +1149,10 @@
G_fatal_error (_("Could not open <%s>"),OUT_VMAX);
if ( (outfd_I_VMAX = Rast_open_new (name7,DCELL_TYPE)) < 0)
G_fatal_error (_("Could not open <%s>"),OUT_VMAX);
- if ( (outfd_DIR_VMAX = Rast_open_new (name8,DCELL_TYPE)) < 0)
- G_fatal_error (_("Could not open <%s>"),OUT_VMAX);
+ if (flag_d->answer) {
+ if ( (outfd_DIR_VMAX = Rast_open_new (name8,DCELL_TYPE)) < 0)
+ G_fatal_error (_("Could not open <%s>"),OUT_VMAX);
+ }
}
if (OUT_IMAX){
sprintf(name9,"%s%s",OUT_IMAX,"_time");
Modified: grass-addons/grass7/raster/r.damflood/r.damflood.html
===================================================================
--- grass-addons/grass7/raster/r.damflood/r.damflood.html 2013-02-27 08:01:56 UTC (rev 55241)
+++ grass-addons/grass7/raster/r.damflood/r.damflood.html 2013-02-27 08:51:11 UTC (rev 55242)
@@ -23,11 +23,10 @@
a variety of output raster maps: maximum water depth, maximum water velocity, and maximum intensity raster maps. <br>
In case on high numerical stability problem, the user is warned, and the simulation is stopped.<br>
-<br><br><p>
+<br><br>
-
-<em><b><font size = "5">Use</b></em></font>
+<em><b><!--font size = "5"-->Use</b></em><!--/font-->
<br>
<p>
<em><b>Requested input:</b></em> <br>
@@ -74,7 +73,8 @@
Actually two different dam failure type are considered by the command: <em>(i)</em> full breach, <em>(ii)</em> partial breach.
<br>
-<img src="dam_failure.png" height="350" alt="" />
+<img src="./dam_failure.png" height="350" alt="" >
+
<br>
In case of total istantaeous dam break (configuration <em>i</em>), the initial velocity is computed directly applying the SWE at the first time step;
@@ -98,7 +98,7 @@
<br>
<br>
-<em><b><font size = "5">Notes</b></em></font size = "5">
+<em><b><!--font size = "5"-->Notes</b></em><!--/font-->
<br>
<br>
@@ -108,7 +108,7 @@
<h2>AUTHORS</h2>
Roberto Marzocchi (<a href="mailto:roberto.marzocchi at gter.it">e-mail</a>) and Massimiliano Cannata (<a href="mailto:massimiliano.cannata at supsi.ch">e-mail</a>).
The GRASS tool was developed by Institute of earth science (IST),
-University of applied science of Italian Switzerland (SUPSI), Lugano - Division of geomatics <a href="http://istgeo.ist.supsi.ch/site/" target="_blank">web-page</a></em><br>
+University of applied science of Italian Switzerland (SUPSI), Lugano - Division of geomatics <a href="http://istgeo.ist.supsi.ch/site/" target="_blank">web-page</a><br>
Actually the debug is assured by:<br>
- <a href="http://www.gter.it/?q=en" target="_blank"> Gter srl</a> (Genoa, Italy) <br>
- <a href="http://www.ist.supsi.ch/" target="_blank">IST -SUPSI</a> (Lugano, Switzerland)<br>
@@ -129,7 +129,7 @@
<br>
Details of the numerical model are presented in references. <br>
-Details of use and developing of <a r.damflood></a> are available <a href="http://istgeo.ist.supsi.ch/site/projects/dambreak" target="_blank">here</a>.</em><br>
+Details of use and developing of <a r.damflood></a> are available <a href="http://istgeo.ist.supsi.ch/site/projects/dambreak" target="_blank">here</a>.<br>
<h2>REFERENCES</h2>
[1] Cannata M. & Marzocchi R. (2012). Two-dimensional dam break flooding simulation: a GIS embedded approach. - Natural Hazards 61(3):1143-1159 <br>
@@ -137,4 +137,4 @@
[3] Pdf presentation of the work at the FOSS4G 2009 (En) - <a href="http://2009.foss4g.org/researchpapers/#researchpaper_10" target="_blank"> web-page </a> <br>
[4] Pdf presentation of the work at the Geoitalia 2011 conference (En)- <a href="https://dl.dropbox.com/u/3019930/marzocchi_cannata_geoitalia2011.pdf" target="_blank"> document </a><br>
-<p><i> Last changed: $7 november 2012 18:00:00 CET $</i>
+<p><i> Last changed: $27 februar 2013 09:40:00 CET $</i>
More information about the grass-commit
mailing list