Skip to content

Commit 6037031

Browse files
committed
Eliminating duplication of declarations in swmm5.h
1 parent df3d8ab commit 6037031

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
!.git*
66

7+
.vscode
8+
79
.DS_Store
810

911
*.pyc

swmm-toolkit/src/swmm/toolkit/solver.i

+9-9
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,16 @@
4545
};
4646

4747
%apply double *OUTPUT {
48+
double *elapsedTime,
4849
double *value
4950
};
5051

52+
%apply float *OUTPUT {
53+
float *runoffErr,
54+
float *flowErr,
55+
float *qualErr
56+
};
57+
5158
%apply signed char *OUTPUT {
5259
signed char *value
5360
};
@@ -314,15 +321,8 @@
314321
}
315322

316323
// CANONICAL API
317-
int swmm_run(char *f1, char *f2, char *f3);
318-
int swmm_open(char *f1, char *f2, char *f3);
319-
int swmm_start(int saveFlag);
320-
int swmm_step(double *OUTPUT);
321-
int swmm_end(void);
322-
int swmm_report(void);
323-
int swmm_getMassBalErr(float *OUTPUT, float *OUTPUT, float *OUTPUT);
324-
int swmm_close(void);
325-
int swmm_getVersionInfo(char** major, char** minor, char** patch);
324+
%include "swmm5.h"
325+
326326

327327

328328
// TOOLKIT API

0 commit comments

Comments
 (0)