kevinwolz / hisafer

An R toolbox for the Hi-sAFe biophysical agroforestry model
6 stars 4 forks source link

run_hisafe() produces no error, but the output folder is empty #133

Closed mariegosme closed 4 years ago

mariegosme commented 4 years ago

When you encounter this problem, run_hisafe() reports that all simulations were run, but each simulation took only a fraction of a second, and the output folder remains empty. This is annoying because there is no way of knowing what is wrong. Actually the problem is not with hisafer, but with capsis installation (i.e. with java), but I thought it is usefull to talk about it here, in order to help future users who might get stuck with this issue. Here are the most frequent problems (and their solutions):

In order to check if it works (or to get error messages if it fails), you have to launch capsis form the Terminal or command prompt: on Mac cd /Applications/capsis sh capsis.sh the first line should read: -> OS/JVM/memory: mac/64/1024m on Windows: cd C:\Program Files\Capsis capsis the first line should read: -> OS/JVM/memory: windows/64/1024m on Linux it should read -> OS/JVM/memory: linux/64/4000m don't worry for now about the last number: it's the memory allocated (you should increase it (see the installation guide, step 3: https://www1.montpellier.inra.fr/wp-inra/hi-safe/en/guide-dinstallation/) if your simulations need a lot of memory (e.g. large scene or very deep soil).

Sorry for the long message. I'll add other issues leading to the same symptoms as I encounter them when running Hi-sAFe on different machines....

mariegosme commented 3 years ago

another problem that has been encountered by some users: nothing happens when trying to launch capsis from the command prompt. Solution: If capsis has been installed on another disk (e.g. D: or E:), you need to use the option /d to change the directory to it: cd /d E:\Mes_documents\capsis