[GRASS-windows] Re: r.sim.water

Glynn Clements glynn at gclements.plus.com
Fri Sep 12 20:18:19 EDT 2008


Markus Neteler wrote:

> > thanks for testing - I think simwe has a problem on MSwindows due to
> > the problem with sites to vector update - that is why Glynn has disabled
> > it.
> 
> when was it disabled (don't remember)? Post-6.3.?

Only in 7.x.

The compatibility wrappers use a "FILE *" in their interfaces, which
is cast to/from a "struct Map_info *" internally. In 7.x, I changed
this to use the correct type, and changed any code which uses those
functions.

Except that simwe has some mismatches, e.g. using G_sites_close() on a
normal text file and using fclose() on a "pseudo-FILE*". With the
changes to lib/sites, simwe doesn't compile, and I couldn't understand
the code well enough to fix it, so I disabled it.

[It doesn't help that there are various other problems with the code,
e.g. each module having a private copy of waterglobs.h which doesn't
necessarily match simlib.]

The changes to lib/sites appear to have been back-ported to 6.4, but I
don't know about the corresponding changes to the modules which use
it.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-windows mailing list