本文整理汇总了C++中ParamArray::Encode方法的典型用法代码示例。如果您正苦于以下问题:C++ ParamArray::Encode方法的具体用法?C++ ParamArray::Encode怎么用?C++ ParamArray::Encode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ParamArray
的用法示例。
在下文中一共展示了ParamArray::Encode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char *argv[])
{
Meas.TaskList.TaskList_len = 1;
Meas.TaskList.TaskList_val = &Task;
Meas.GaugeStem = "";
Meas.RNGStem = "";
Task.OutputFilestem = "";
Task.ArgFilename = "arg_stem";
ws_out.cg = "";
ws_out.cg2 = "filename";
ws_out.pbp = "filename";
ws_out.mid_point = "filename";
ws_out.nucleon = "filename";
ws_out.nucleon_prime = "filename";
ws_out.delta_x = "filename";
ws_out.delta_y = "filename";
ws_out.delta_z = "filename";
ws_out.delta_t = "filename";
evo_arg.ensemble_id = "id";
evo_arg.ensemble_label = "label";
evo_arg.creator = "creator";
evo_arg.gauge_file_stem = "ckpoint_lat";
evo_arg.rng_file_stem = "ckpoint_rng";
evo_arg.plaquette_stem = "plaq";
evo_arg.evo_stem = "hmd";
evo_arg.work_directory = "";
ws_arg.CgArgFile = "CgFile";
rat_arg.resize(4);
rat_arg.resize(0, 10, 16);
rat_arg.resize(1, 10, 16);
rat_arg.resize(2, 9, 14);
rat_arg.resize(3, 6, 9);
bsn_arg.resize(1);
frm_arg.resize(1);
split_arg.resize(2);
quo_arg.resize(1);
rat_quo_arg.resize(1);
rat_quo_arg.resize(0, 9, 15, 6, 9);
float_array.resize(4);
param_array.resize(3);
param_array.params.params_val[0].name="mass";
param_array.params.params_val[1].name="epsilon";
param_array.params.params_val[2].name="u0";
stag_quark_src.type = S_QUARK_POINT;
for(int i = 0; i < 4; i++)
{
stag_quark_src.origin[i] = 0;
stag_quark_src.end[i] = 0;
}
stag_quark_src.dir = HDM_T;
stag_quark_arg.qid = 0;
stag_quark_arg.cg.mass = 0.1;
stag_quark_arg.cg.max_num_iter = 5000;
stag_quark_arg.cg.stop_rsd = 1e-10;
stag_quark_arg.cg.true_rsd = 1e-10;
stag_quark_arg.cg.RitzMatOper = MATPCDAG_MATPC;
stag_quark_arg.cg.Inverter = CG;
stag_quark_arg.cg.bicgstab_n = 1;
stag_quark_arg.src = stag_quark_src;
stag_quark_arg.sln = LOCAL;
stag_meson_arg.qid0 = 0;
stag_meson_arg.qid1 = 1;
stag_meson_arg.dir = HDM_T;
stag_meson_arg.meson_buf = 0;
stag_mom_meson_arg.qid0 = 0;
stag_mom_meson_arg.qid1 = 1;
stag_mom_meson_arg.dir = HDM_T;
stag_mom_meson_arg.no_of_momenta = 4;
stag_mom_meson_arg.meson_buf = 0;
stag_nucleon_arg.qid0 = 0;
stag_nucleon_arg.qid1 = 1;
stag_nucleon_arg.qid2 = 2;
stag_nucleon_arg.dir = HDM_T;
stag_nucleon_arg.nucleon_buf = 0;
stag_non_local_arg.qid0 = 0;
stag_non_local_arg.qid1 = 1;
stag_non_local_arg.qid2 = 2;
stag_non_local_arg.dir = HDM_T;
stag_non_local_arg.nlocal_buf = 0;
for(int i = 0; i < 8; i++)
nlstag_meson_arg.qid0[i] = i;
nlstag_meson_arg.dir = HDM_T;
nlstag_meson_arg.nlocal_buf = 0;
nuc3pt_arg.cname="AlgNuc3pt";
nuc3pt_arg.ensemble_label="AlgNuc3pt";
mdwf_arg.M5 = 1.8;
// mdwf_arg.cg_arg_p = &cg_arg;
cg_arg.Encode("cg_arg.vml","cg_arg");
mdwf_arg.Encode("mdwf_arg.vml","mdwf_arg");
hmd_arg.Encode("hmd_arg.vml","hmd_arg");
evo_arg.Encode("evo_arg.vml","evo_arg");
do_arg.Encode("do_arg.vml","do_arg");
ws_arg.Encode("w_spect_arg.vml","w_spect_arg");
//.........这里部分代码省略.........