diff options
author | jthorn <jthorn@df1f8a13-aa1d-4dd4-9681-27ded5b42416> | 2002-05-14 14:01:06 +0000 |
---|---|---|
committer | jthorn <jthorn@df1f8a13-aa1d-4dd4-9681-27ded5b42416> | 2002-05-14 14:01:06 +0000 |
commit | c6aa3bd37e89ab1a1f415d5ed9fa286d5a426854 (patch) | |
tree | c2ced1767c00322cdf5a913f1ca63a276368a3a8 /src/GeneralizedPolynomial-Uniform/1d.maple | |
parent | ae63009d6b13773dd6cd4ff4c9552d0e2c9fad39 (diff) |
There are 3 changes in this commit
* Add code to print C assignments of the form
COEFF(-1,1) = coeff_dx_m1_p1;
etc
* change all functions which print to name files to now explicit close
the files when they're done -- previously we just left the files open,
and relied on Maple's implicit close-on-exit :(
* reformat whitespace in [123]d.maple
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@36 df1f8a13-aa1d-4dd4-9681-27ded5b42416
Diffstat (limited to 'src/GeneralizedPolynomial-Uniform/1d.maple')
-rw-r--r-- | src/GeneralizedPolynomial-Uniform/1d.maple | 172 |
1 files changed, 107 insertions, 65 deletions
diff --git a/src/GeneralizedPolynomial-Uniform/1d.maple b/src/GeneralizedPolynomial-Uniform/1d.maple index 5125fe8..8c9e23a 100644 --- a/src/GeneralizedPolynomial-Uniform/1d.maple +++ b/src/GeneralizedPolynomial-Uniform/1d.maple @@ -74,15 +74,22 @@ posn_list_1d_size7 := map(ListTools[Reverse], hypercube_points([-3], [+3])); data_var_list_1d_size2 := map(data_var_name, posn_list_1d_size2, "data_"); -print_name_list_dcl(data_var_list_1d_size2, - "fp", "1d.coeffs/1d.cube.size2/data-var.dcl.c"); -print_data_var_assign(posn_list_1d_size2, - "data_", "1d.coeffs/1d.cube.size2/data-var.assign.c"); - -print_name_list_dcl(map(coeff_name, posn_list_1d_size2, "coeff_I_"), - "fp", "1d.coeffs/1d.cube.size2/coeff-I.dcl.c"); -print_name_list_dcl(map(coeff_name, posn_list_1d_size2, "coeff_dx_"), - "fp", "1d.coeffs/1d.cube.size2/coeff-dx.dcl.c"); +print_name_list_dcl(data_var_list_1d_size2, "fp", + "1d.coeffs/1d.cube.size2/data-var.dcl.c"); +print_data_var_assign(posn_list_1d_size2, "data_", + "1d.coeffs/1d.cube.size2/data-var.assign.c"); + +print_interp_coeff_var_store(posn_list_1d_size2, "coeff_I_", + "1d.coeffs/1d.cube.size2/coeff-I.store.c"); +print_interp_coeff_var_store(posn_list_1d_size2, "coeff_dx_", + "1d.coeffs/1d.cube.size2/coeff-dx.store.c"); +print_interp_coeff_var_store(posn_list_1d_size2, "coeff_dxx_", + "1d.coeffs/1d.cube.size2/coeff-dxx.store.c"); + +print_name_list_dcl(map(coeff_name, posn_list_1d_size2, "coeff_I_"), "fp", + "1d.coeffs/1d.cube.size2/coeff-I.dcl.c"); +print_name_list_dcl(map(coeff_name, posn_list_1d_size2, "coeff_dx_"), "fp", + "1d.coeffs/1d.cube.size2/coeff-dx.dcl.c"); print_interp_cmpt__lc_of_data(posn_list_1d_size2, "result", "coeff_I_", "data_", @@ -99,17 +106,24 @@ print_interp_cmpt__lc_of_data(posn_list_1d_size2, data_var_list_1d_size3 := map(data_var_name, posn_list_1d_size3, "data_"); -print_name_list_dcl(data_var_list_1d_size3, - "fp", "1d.coeffs/1d.cube.size3/data-var.dcl.c"); -print_data_var_assign(posn_list_1d_size3, - "data_", "1d.coeffs/1d.cube.size3/data-var.assign.c"); - -print_name_list_dcl(map(coeff_name, posn_list_1d_size3, "coeff_I_"), - "fp", "1d.coeffs/1d.cube.size3/coeff-I.dcl.c"); -print_name_list_dcl(map(coeff_name, posn_list_1d_size3, "coeff_dx_"), - "fp", "1d.coeffs/1d.cube.size3/coeff-dx.dcl.c"); -print_name_list_dcl(map(coeff_name, posn_list_1d_size3, "coeff_dxx_"), - "fp", "1d.coeffs/1d.cube.size3/coeff-dxx.dcl.c"); +print_name_list_dcl(data_var_list_1d_size3, "fp", + "1d.coeffs/1d.cube.size3/data-var.dcl.c"); +print_data_var_assign(posn_list_1d_size3, "data_", + "1d.coeffs/1d.cube.size3/data-var.assign.c"); + +print_interp_coeff_var_store(posn_list_1d_size3, "coeff_I_", + "1d.coeffs/1d.cube.size3/coeff-I.store.c"); +print_interp_coeff_var_store(posn_list_1d_size3, "coeff_dx_", + "1d.coeffs/1d.cube.size3/coeff-dx.store.c"); +print_interp_coeff_var_store(posn_list_1d_size3, "coeff_dxx_", + "1d.coeffs/1d.cube.size3/coeff-dxx.store.c"); + +print_name_list_dcl(map(coeff_name, posn_list_1d_size3, "coeff_I_"), "fp", + "1d.coeffs/1d.cube.size3/coeff-I.dcl.c"); +print_name_list_dcl(map(coeff_name, posn_list_1d_size3, "coeff_dx_"), "fp", + "1d.coeffs/1d.cube.size3/coeff-dx.dcl.c"); +print_name_list_dcl(map(coeff_name, posn_list_1d_size3, "coeff_dxx_"), "fp", + "1d.coeffs/1d.cube.size3/coeff-dxx.dcl.c"); print_interp_cmpt__lc_of_data(posn_list_1d_size3, "result", "coeff_I_", "data_", @@ -129,17 +143,24 @@ print_interp_cmpt__lc_of_data(posn_list_1d_size3, data_var_list_1d_size4 := map(data_var_name, posn_list_1d_size4, "data_"); -print_name_list_dcl(data_var_list_1d_size4, - "fp", "1d.coeffs/1d.cube.size4/data-var.dcl.c"); -print_data_var_assign(posn_list_1d_size4, - "data_", "1d.coeffs/1d.cube.size4/data-var.assign.c"); - -print_name_list_dcl(map(coeff_name, posn_list_1d_size4, "coeff_I_"), - "fp", "1d.coeffs/1d.cube.size4/coeff-I.dcl.c"); -print_name_list_dcl(map(coeff_name, posn_list_1d_size4, "coeff_dx_"), - "fp", "1d.coeffs/1d.cube.size4/coeff-dx.dcl.c"); -print_name_list_dcl(map(coeff_name, posn_list_1d_size4, "coeff_dxx_"), - "fp", "1d.coeffs/1d.cube.size4/coeff-dxx.dcl.c"); +print_name_list_dcl(data_var_list_1d_size4, "fp", + "1d.coeffs/1d.cube.size4/data-var.dcl.c"); +print_data_var_assign(posn_list_1d_size4, "data_", + "1d.coeffs/1d.cube.size4/data-var.assign.c"); + +print_interp_coeff_var_store(posn_list_1d_size4, "coeff_I_", + "1d.coeffs/1d.cube.size4/coeff-I.store.c"); +print_interp_coeff_var_store(posn_list_1d_size4, "coeff_dx_", + "1d.coeffs/1d.cube.size4/coeff-dx.store.c"); +print_interp_coeff_var_store(posn_list_1d_size4, "coeff_dxx_", + "1d.coeffs/1d.cube.size4/coeff-dxx.store.c"); + +print_name_list_dcl(map(coeff_name, posn_list_1d_size4, "coeff_I_"), "fp", + "1d.coeffs/1d.cube.size4/coeff-I.dcl.c"); +print_name_list_dcl(map(coeff_name, posn_list_1d_size4, "coeff_dx_"), "fp", + "1d.coeffs/1d.cube.size4/coeff-dx.dcl.c"); +print_name_list_dcl(map(coeff_name, posn_list_1d_size4, "coeff_dxx_"), "fp", + "1d.coeffs/1d.cube.size4/coeff-dxx.dcl.c"); print_interp_cmpt__lc_of_data(posn_list_1d_size4, "result", "coeff_I_", "data_", @@ -159,17 +180,24 @@ print_interp_cmpt__lc_of_data(posn_list_1d_size4, data_var_list_1d_size5 := map(data_var_name, posn_list_1d_size5, "data_"); -print_name_list_dcl(data_var_list_1d_size5, - "fp", "1d.coeffs/1d.cube.size5/data-var.dcl.c"); -print_data_var_assign(posn_list_1d_size5, - "data_", "1d.coeffs/1d.cube.size5/data-var.assign.c"); - -print_name_list_dcl(map(coeff_name, posn_list_1d_size5, "coeff_I_"), - "fp", "1d.coeffs/1d.cube.size5/coeff-I.dcl.c"); -print_name_list_dcl(map(coeff_name, posn_list_1d_size5, "coeff_dx_"), - "fp", "1d.coeffs/1d.cube.size5/coeff-dx.dcl.c"); -print_name_list_dcl(map(coeff_name, posn_list_1d_size5, "coeff_dxx_"), - "fp", "1d.coeffs/1d.cube.size5/coeff-dxx.dcl.c"); +print_name_list_dcl(data_var_list_1d_size5, "fp", + "1d.coeffs/1d.cube.size5/data-var.dcl.c"); +print_data_var_assign(posn_list_1d_size5, "data_", + "1d.coeffs/1d.cube.size5/data-var.assign.c"); + +print_interp_coeff_var_store(posn_list_1d_size5, "coeff_I_", + "1d.coeffs/1d.cube.size5/coeff-I.store.c"); +print_interp_coeff_var_store(posn_list_1d_size5, "coeff_dx_", + "1d.coeffs/1d.cube.size5/coeff-dx.store.c"); +print_interp_coeff_var_store(posn_list_1d_size5, "coeff_dxx_", + "1d.coeffs/1d.cube.size5/coeff-dxx.store.c"); + +print_name_list_dcl(map(coeff_name, posn_list_1d_size5, "coeff_I_"), "fp", + "1d.coeffs/1d.cube.size5/coeff-I.dcl.c"); +print_name_list_dcl(map(coeff_name, posn_list_1d_size5, "coeff_dx_"), "fp", + "1d.coeffs/1d.cube.size5/coeff-dx.dcl.c"); +print_name_list_dcl(map(coeff_name, posn_list_1d_size5, "coeff_dxx_"), "fp", + "1d.coeffs/1d.cube.size5/coeff-dxx.dcl.c"); print_interp_cmpt__lc_of_data(posn_list_1d_size5, "result", "coeff_I_", "data_", @@ -189,17 +217,24 @@ print_interp_cmpt__lc_of_data(posn_list_1d_size5, data_var_list_1d_size6 := map(data_var_name, posn_list_1d_size6, "data_"); -print_name_list_dcl(data_var_list_1d_size6, - "fp", "1d.coeffs/1d.cube.size6/data-var.dcl.c"); -print_data_var_assign(posn_list_1d_size6, - "data_", "1d.coeffs/1d.cube.size6/data-var.assign.c"); - -print_name_list_dcl(map(coeff_name, posn_list_1d_size6, "coeff_I_"), - "fp", "1d.coeffs/1d.cube.size6/coeff-I.dcl.c"); -print_name_list_dcl(map(coeff_name, posn_list_1d_size6, "coeff_dx_"), - "fp", "1d.coeffs/1d.cube.size6/coeff-dx.dcl.c"); -print_name_list_dcl(map(coeff_name, posn_list_1d_size6, "coeff_dxx_"), - "fp", "1d.coeffs/1d.cube.size6/coeff-dxx.dcl.c"); +print_name_list_dcl(data_var_list_1d_size6, "fp", + "1d.coeffs/1d.cube.size6/data-var.dcl.c"); +print_data_var_assign(posn_list_1d_size6, "data_", + "1d.coeffs/1d.cube.size6/data-var.assign.c"); + +print_interp_coeff_var_store(posn_list_1d_size6, "coeff_I_", + "1d.coeffs/1d.cube.size6/coeff-I.store.c"); +print_interp_coeff_var_store(posn_list_1d_size6, "coeff_dx_", + "1d.coeffs/1d.cube.size6/coeff-dx.store.c"); +print_interp_coeff_var_store(posn_list_1d_size6, "coeff_dxx_", + "1d.coeffs/1d.cube.size6/coeff-dxx.store.c"); + +print_name_list_dcl(map(coeff_name, posn_list_1d_size6, "coeff_I_"), "fp", + "1d.coeffs/1d.cube.size6/coeff-I.dcl.c"); +print_name_list_dcl(map(coeff_name, posn_list_1d_size6, "coeff_dx_"), "fp", + "1d.coeffs/1d.cube.size6/coeff-dx.dcl.c"); +print_name_list_dcl(map(coeff_name, posn_list_1d_size6, "coeff_dxx_"), "fp", + "1d.coeffs/1d.cube.size6/coeff-dxx.dcl.c"); print_interp_cmpt__lc_of_data(posn_list_1d_size6, "result", "coeff_I_", "data_", @@ -219,17 +254,24 @@ print_interp_cmpt__lc_of_data(posn_list_1d_size6, data_var_list_1d_size7 := map(data_var_name, posn_list_1d_size7, "data_"); -print_name_list_dcl(data_var_list_1d_size7, - "fp", "1d.coeffs/1d.cube.size7/data-var.dcl.c"); -print_data_var_assign(posn_list_1d_size7, - "data_", "1d.coeffs/1d.cube.size7/data-var.assign.c"); - -print_name_list_dcl(map(coeff_name, posn_list_1d_size7, "coeff_I_"), - "fp", "1d.coeffs/1d.cube.size7/coeff-I.dcl.c"); -print_name_list_dcl(map(coeff_name, posn_list_1d_size7, "coeff_dx_"), - "fp", "1d.coeffs/1d.cube.size7/coeff-dx.dcl.c"); -print_name_list_dcl(map(coeff_name, posn_list_1d_size7, "coeff_dxx_"), - "fp", "1d.coeffs/1d.cube.size7/coeff-dxx.dcl.c"); +print_name_list_dcl(data_var_list_1d_size7, "fp", + "1d.coeffs/1d.cube.size7/data-var.dcl.c"); +print_data_var_assign(posn_list_1d_size7, "data_", + "1d.coeffs/1d.cube.size7/data-var.assign.c"); + +print_interp_coeff_var_store(posn_list_1d_size7, "coeff_I_", + "1d.coeffs/1d.cube.size7/coeff-I.store.c"); +print_interp_coeff_var_store(posn_list_1d_size7, "coeff_dx_", + "1d.coeffs/1d.cube.size7/coeff-dx.store.c"); +print_interp_coeff_var_store(posn_list_1d_size7, "coeff_dxx_", + "1d.coeffs/1d.cube.size7/coeff-dxx.store.c"); + +print_name_list_dcl(map(coeff_name, posn_list_1d_size7, "coeff_I_"), "fp", + "1d.coeffs/1d.cube.size7/coeff-I.dcl.c"); +print_name_list_dcl(map(coeff_name, posn_list_1d_size7, "coeff_dx_"), "fp", + "1d.coeffs/1d.cube.size7/coeff-dx.dcl.c"); +print_name_list_dcl(map(coeff_name, posn_list_1d_size7, "coeff_dxx_"), "fp", + "1d.coeffs/1d.cube.size7/coeff-dxx.dcl.c"); print_interp_cmpt__lc_of_data(posn_list_1d_size7, "result", "coeff_I_", "data_", @@ -403,4 +445,4 @@ coeff_as_lc_of_data(%, posn_list_1d_size7); print_coeff__lc_of_data(%, "coeff_dxx_", "fp", "1d.coeffs/1d.cube.order6.smooth0/coeff-dxx.compute.c"); -######################################## +################################################################################ |