[bug #57265] The Jacobian function is not correctly translated for deSolve

Frederic Yves Bois <[email protected]> Tue, 19 Nov 2019 02:52:37 -0500 (EST)
Newsgroups gmane.comp.gnu.mcsim.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/bugs/?57265>

                 Summary: The Jacobian function is not correctly translated
for deSolve
                 Project: MCSim simulation sofware
            Submitted by: fredomatic
            Submitted on: Tue 19 Nov 2019 08:52:35 AM CET
                Category: Mod
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: Confirmed
                 Privacy: Public
             Assigned to: fredomatic
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I found that there is an issue when compiling the model to the c file that
will use to dynamic load in R from the perc.model

$ ./mod.so -R perc.model perc.model.c
$ R CMD SHLIB perc.model.c

```
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG     -fpic  -g -O2
-fdebug-prefix-map=/build/r-base-uuRxut/r-base-3.6.1=. -fstack-
protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -c inst/models/perc.model.c -o
inst/models/perc.model.o
inst/models/perc.model.c: In function ‘jac’:
inst/models/perc.model.c:319:10: error: ‘column’ undeclared (first use in
this function)
  switch (column) {
          ^~~~~~
etc.

Nan-Hung




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 19 Nov 2019 08:52:35 AM CET  Name:
Screenshot@from@[email protected]  Size: 19KiB   By: fredomatic

<http://savannah.gnu.org/bugs/download.php?file_id=47891>
-------------------------------------------------------
Date: Tue 19 Nov 2019 08:52:35 AM CET  Name:
Screenshot@from@[email protected]  Size: 49KiB   By: fredomatic

<http://savannah.gnu.org/bugs/download.php?file_id=47892>
-------------------------------------------------------
Date: Tue 19 Nov 2019 08:52:35 AM CET  Name:
Screenshot@from@[email protected]  Size: 59KiB   By: fredomatic

<http://savannah.gnu.org/bugs/download.php?file_id=47893>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57265>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/