commit 8c6fcd5e3a3b97f9dafc019587d0de2189eb989a
parent 8c4cb1c10011a7ea2626188ee599b912b44b15d6
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 28 May 2024 15:42:14 +0200
Don't define dummy arguments for programmable properties
Since commit 9919cf4, Stardis has provided a first argument which is
either the property name or the program name. Until now, we used the
dummy argument to simulate it and enable the use of the getopt function.
Since the above-mentioned commit, this first dummy argument has become
unnecessary. Hence this commit, which removes it.
Diffstat:
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/sadist_conducto_radiative.c b/src/sadist_conducto_radiative.c
@@ -102,10 +102,10 @@ setup_scene(FILE* fp)
fprintf(fp, "SOLID cube %g 1 1 0.05 0 UNKNOWN 0 FRONT %s\n",
LAMBDA, FILENAME_CUBE);
fprintf(fp, "SOLID_FLUID_CONNECTION_PROG radiative solid_fluid %s "
- "PROG_PARAMS dummy -e %g -r 300\n", FILENAME_RADIATIVE, EMISSIVITY);
+ "PROG_PARAMS -e %g -r 300\n", FILENAME_RADIATIVE, EMISSIVITY);
fprintf(fp, "SOLID_FLUID_CONNECTION adiabatic 0 0 0 0 %s\n",
FILENAME_ADIABATIC);
- fprintf(fp, "TRAD_PROG radenv_1d PROG_PARAMS dummy -r %g,%g -t %g,%g\n",
+ fprintf(fp, "TRAD_PROG radenv_1d PROG_PARAMS -r %g,%g -t %g,%g\n",
TREF, TREF, T0, T1);
}
diff --git a/src/sadist_external_flux.c b/src/sadist_external_flux.c
@@ -154,7 +154,7 @@ setup_scene_prog(FILE* fp)
pos[2] = 0;
fprintf(fp, "SPHERICAL_SOURCE_PROG "STR(SOURCE_RADIUS)" source "
- "PROG_PARAMS dummy -d 0 -p %f,%f,%f -w "STR(SOURCE_POWER)"\n",
+ "PROG_PARAMS -d 0 -p %f,%f,%f -w "STR(SOURCE_POWER)"\n",
pos[0], pos[1], pos[2]);
}
diff --git a/src/sadist_probe_boundary.c b/src/sadist_probe_boundary.c
@@ -208,7 +208,7 @@ setup_scene
low = MMIN(MMIN(aabb->lower[0], aabb->lower[1]), aabb->lower[2]);
upp = MMAX(MMAX(aabb->upper[0], aabb->upper[1]), aabb->upper[2]);
fprintf(fp, "T_BOUNDARY_FOR_SOLID_PROG Dirichlet trilinear_profile %s", sshape);
- fprintf(fp, " PROG_PARAMS dummy -b %g,%g -t %g,%g,%g\n", low, upp, TX, TY, TZ);
+ fprintf(fp, " PROG_PARAMS -b %g,%g -t %g,%g,%g\n", low, upp, TX, TY, TZ);
d3_splat(profile->lower, low);
d3_splat(profile->upper, upp);
diff --git a/src/sadist_unsteady.c b/src/sadist_unsteady.c
@@ -110,7 +110,7 @@ setup_scene
LAMBDA, RHO, CP, DELTA, sshape);
fprintf(fp, "T_BOUNDARY_FOR_SOLID_PROG Dirichlet unsteady_profile %s", sshape);
- fprintf(fp, " PROG_PARAMS dummy -p %g,%g,%g -k %g,%g,%g -m %g,%g,%g\n",
+ fprintf(fp, " PROG_PARAMS -p %g,%g,%g -k %g,%g,%g -m %g,%g,%g\n",
UPROF_A, UPROF_B1, UPROF_B2, UPROF_K, UPROF_K, UPROF_K, LAMBDA, RHO, CP);
profile->A = UPROF_A;