@sdeverywhere/cli 0.7.5 → 0.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/c/sde.h +7 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdeverywhere/cli",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "description": "Contains the `sde` command line interface for the SDEverywhere tool suite.",
5
5
  "type": "module",
6
6
  "files": [
@@ -11,8 +11,8 @@
11
11
  "sde": "src/main.js"
12
12
  },
13
13
  "dependencies": {
14
- "@sdeverywhere/build": "^0.2.0",
15
- "@sdeverywhere/compile": "^0.7.2",
14
+ "@sdeverywhere/build": "^0.3.0",
15
+ "@sdeverywhere/compile": "^0.7.3",
16
16
  "bufx": "^1.0.5",
17
17
  "byline": "^5.0.0",
18
18
  "ramda": "^0.27.0",
package/src/c/sde.h CHANGED
@@ -50,7 +50,7 @@ EXTERN double _final_time;
50
50
  EXTERN double _time_step;
51
51
  EXTERN double _saveper;
52
52
 
53
- // API
53
+ // API (defined in model.h)
54
54
  char* run_model(const char* inputs);
55
55
  void runModelWithBuffers(double* inputs, double* outputs);
56
56
  void run(void);
@@ -58,7 +58,12 @@ void startOutput(void);
58
58
  void outputVar(double value);
59
59
  void finish(void);
60
60
 
61
- // Functions implemented by the model
61
+ // API (defined by the generated model)
62
+ double getInitialTime(void);
63
+ double getFinalTime(void);
64
+ double getSaveper(void);
65
+
66
+ // Functions implemented by the generated model
62
67
  void initConstants(void);
63
68
  void initLevels(void);
64
69
  void setInputs(const char* inputData);