You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
id = CreateIphreeqc()
if (id .LT.0) stop
res = SetErrorStringOn(id, .TRUE.)
res = LoadDatabase(id, 'phreeqc.dat')
res = AccumulateLine(id,"SOLUTION")
res = AccumulateLine(id,"pH abc")
res = AccumulateLine(id,"xx")
res = RunAccumulated(id)
if (res .NE.0) thendo i =1, GetErrorStringLineCount(id)
call GetErrorStringLine(id,i,Line)
write (*,'(I0,1x,A)') i, trim(line)
enddoendifwrite (*,'(/"Returned accumulating line with ",I0," errors."/)') res
Outputs:
1
2 ERROR: Concentration data error for ph in solution input.
3
4 ERROR: No element or master species given for concentration input.
5 ERROR: Calculations terminating due to input errors.
Returned accumulating line with 2 errors.
Example:
Outputs:
Cause
Empty line is added here (Line 42):
iphreeqc/src/phreeqcpp/common/PHRQ_base.cxx
Lines 32 to 56 in cfe6dec
Proposed fix
modify
IPhreeqc::update_errors
to skip callingthis->ErrorLines.push_back(line);
for empty lines.The text was updated successfully, but these errors were encountered: