dump precision

git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/branches/multi_punch@7877 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
David L Parkhurst 2013-08-01 23:37:05 +00:00
parent ce4284a561
commit 8474b53520

View File

@ -1127,12 +1127,12 @@ dump_cpp(void)
fs << token;
sprintf(token, "\t-timest %13.5e\n", (double) timest);
fs << token;
//if (current_selected_output != NULL && !current_selected_output->Get_high_precision())
//{
// sprintf(token, "\t-diffc %13.5e\n", (double) diffc);
// fs << token;
//}
//else
if (!high_precision)
{
sprintf(token, "\t-diffc %13.5e\n", (double) diffc);
fs << token;
}
else
{
sprintf(token, "\t-diffc %20.12e\n", (double) diffc);
fs << token;
@ -1167,12 +1167,12 @@ dump_cpp(void)
fs << token;
for (int i = 0; i < count_cells; i++)
{
//if (current_selected_output != NULL && !current_selected_output->Get_high_precision())
//{
// sprintf(token, "%12.3e", (double) cell_data[i].disp);
// fs << token;
//}
//else
if (!high_precision)
{
sprintf(token, "%12.3e", (double) cell_data[i].disp);
fs << token;
}
else
{
sprintf(token, "%20.12e", (double) cell_data[i].disp);
fs << token;