<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Markus Neteler ha scritto:
<blockquote
 cite="mid86782b610805021516u55346405me8965b594ddec047@mail.gmail.com"
 type="cite">
  <pre wrap="">Robert,

I have added a (draft) Makefile to that directory. Please check.

  </pre>
</blockquote>
I've make some changes to Makefile, because before the Makefile created
a&nbsp; uncorrect directory.<br>
Now there is only one more problem:<br>
<br>
<b>the clean lines don't&nbsp; remove correctly the binaries</b><br>
<br>
"<br>
<i>clean:<br>
&nbsp;&nbsp;&nbsp; -rm -f find_main_channel.exe clean_inundation.exe 2d_path.exe
correction_from_path.exe dati.mod dd.mod<br>
"</i><br>
Anyone have an idea?<br>
<br>
<br>
<br>
<blockquote
 cite="mid86782b610805021516u55346405me8965b594ddec047@mail.gmail.com"
 type="cite">
  <pre wrap="">Now you can simplify your script and call the F90 based binaries
directly like
$GISBASE/etc/fortran_code/find_main_channel
etc.

  </pre>
</blockquote>
Yes I did.<br>
<blockquote
 cite="mid86782b610805021516u55346405me8965b594ddec047@mail.gmail.com"
 type="cite">
  <pre wrap="">instead of (script excerpt):

rm -r -f ~/$cartella_nascosta
mkdir ~/$cartella_nascosta
cp "$GISBASE/fortran_code"/find_main_channel.exe  ~/$cartella_nascosta
cp "$GISBASE/fortran_code"/clean_inundation.exe  ~/$cartella_nascosta
cp "$GISBASE/fortran_code"/2d_path.exe  ~/$cartella_nascosta
cp "$GISBASE/fortran_code"/correction_from_path.exe  ~/$cartella_nascosta
 ....

cheers,
Markus

  </pre>
</blockquote>
<br>
<br>
Cheers <br>
Roberto <br>
<br>
<br>
<br>
<br>
<blockquote
 cite="mid86782b610805021516u55346405me8965b594ddec047@mail.gmail.com"
 type="cite">
  <pre wrap="">On Fri, May 2, 2008 at 5:49 PM, roberto.marzocchi
<a class="moz-txt-link-rfc2396E" href="mailto:roberto.marzocchi@gmail.com">&lt;roberto.marzocchi@gmail.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap=""> Hello,

 I've write a grass script
(<a class="moz-txt-link-freetext" href="https://svn.osgeo.org/grass/grass-addons/raster/r.inund.fluv/">https://svn.osgeo.org/grass/grass-addons/raster/r.inund.fluv/</a>) In my grass
script I use four implemented fortran codes.
 Now this script is in Add_ons repository, but there isn't a Makefile. I've
written an install.sh  script.

 With Markus, we think that is good to make some changes to the MAKE system
and to allow the compilation of Fortan codes.

 probably  is like the compilation of C codes
  We wrote some lines in install.sh script (see below),  but we're sure that
this can be written more elegant in make syntax.

             #compile the fortran codes with GNUFORTRAN
             #gfortran -O1 -o trova_alveo.exe trova_alveo.f90
             #gfortran -O1 -o pulizia_inondazione.exe
pulizia_inondazione.f90
             #gfortran -O1 -o reticolo2d.exe reticolo2d.f90
             #gfortran -O1 -o correzione_reticolo.exe
correzione_reticolo.f90

             # put the .exe files in the chosen directory and change the
219-222 rows of the script


 Anyone may help me?

 Thanks in advanced

 Roberto


_______________________________________________
 grass-dev mailing list
 <a class="moz-txt-link-abbreviated" href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a>
 <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-dev">http://lists.osgeo.org/mailman/listinfo/grass-dev</a>

    </pre>
  </blockquote>
  <pre wrap=""><!---->


  </pre>
</blockquote>
<br>
</body>
</html>