BrianBGrant / DNDCv.CAN

This is our development version of DNDCv.CAN. The model is under ongoing development. Please report issues.
9 stars 4 forks source link

Running batch file - last executable #16

Open matteolongo2 opened 1 week ago

matteolongo2 commented 1 week ago

Hello Brian, I am trying to run DNDC on a batch using R, but I keep encountering an error (see attached screenshot).

Cattura

It works fine with previous executables (from 2022) and when using the GUI, but I need to run a large number of simulations simultaneously and choose the output folder for each one. I have attached an example for your reference.

processx::run("C:/DNDC/console/DNDC95.exe", c("-output", paste0("C:/DNDC/OUTPUT"), "-s","C:/DNDC/console/batch.txt"))

Thank you in advance

NotWorking.zip

matteolongo2 commented 1 week ago

Update: Since it works on other computers, I tried reinstalling Visual Studio 2022 and the Intel compiler, but I'm still encountering the same error. Additionally, the file "soil_5.txt" is located in the same directory on the computers where it runs successfully. Thank you