summaryrefslogtreecommitdiff
path: root/genconst.c
diff options
context:
space:
mode:
Diffstat (limited to 'genconst.c')
-rw-r--r--genconst.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/genconst.c b/genconst.c
deleted file mode 100644
index 30a1d7d..0000000
--- a/genconst.c
+++ /dev/null
@@ -1,34 +0,0 @@
-#define GEN_CONST
-#include "mec-2.h"
-#include <stdio.h>
-
-int main()
-{
- FILE *f;
- /* Initialize constants */
- ALPHA_ST = _ALPHA_ST;
- ALPHA_YT = _ALPHA_YT;
- SIGMA_LU = _SIGMA_LU;
- SIGMA_LY = _SIGMA_LY;
- DEFAULT_BETA1 = _DEFAULT_BETA1;
- MIN_BETA = _MIN_BETA;
- EC_MIN_VALUE = _EC_MIN_VALUE;
- CUTOFF = _CUTOFF;
-
- f = fopen("mec-2-const.h", "w");
- if (!f) {
- fprintf(stderr, "Unable to open const output\n");
- exit(1);
- }
- fprintf(f, "/* Generated by genconst */\n");
- fprintf(f, "#define ALPHA_ST %e\n", ALPHA_ST);
- fprintf(f, "#define ALPHA_YT %e\n", ALPHA_YT);
- fprintf(f, "#define SIGMA_LU %e\n", SIGMA_LU);
- fprintf(f, "#define SIGMA_LY %e\n", SIGMA_LY);
- fprintf(f, "#define DEFAULT_BETA1 %e\n", DEFAULT_BETA1);
- fprintf(f, "#define MIN_BETA %e\n", MIN_BETA);
- fprintf(f, "#define EC_MIN_VALUE %e\n", EC_MIN_VALUE);
- fprintf(f, "#define CUTOFF %e\n", CUTOFF);
- exit(0);
-
-}