File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,13 @@ subroutine helmeos2aux( &
257
257
return
258
258
end if
259
259
260
+ ! error out for very low pgas,egas,sgas (previously just set hard floor at this value)
261
+ if (pgas < 1d-20 .or. egas < 1d-20 .or. sgas < 1d-20 ) then
262
+ ierr = 1
263
+ if (dbg) write (* ,* ) ' failed in helm, sums too small'
264
+ return
265
+ end if
266
+
260
267
! ..compute the derivative quantities (cv, gamma1 ...etc)
261
268
include ' helm_gammas.dek'
262
269
if (ierr /= 0 ) then
Original file line number Diff line number Diff line change 1
- pgas = max( pion + pele + ppos + pcoul, 1d-20)
1
+ pgas = pion + pele + ppos + pcoul
2
2
3
3
dpgasdd = dpiondd + dpepdd + dpcouldd
4
4
dpgasdt = dpiondt + dpepdt + dpcouldt
15
15
dpgasdaz = dpiondaz + dpepdaz + dpcouldaz
16
16
dpgasdzz = dpiondzz + dpepdzz + dpcouldzz
17
17
18
- egas = max( eion + eele + epos + ecoul, 1d-20)
18
+ egas = eion + eele + epos + ecoul
19
19
20
20
if (.false.) then
21
21
write(*,'(a6,e15.5)') 'egas', egas
41
41
degasdaz = deiondaz + deepdaz + decouldaz
42
42
degasdzz = deiondzz + deepdzz + decouldzz
43
43
44
- sgas = max( sion + sele + spos + scoul, 1d-20)
44
+ sgas = sion + sele + spos + scoul
45
45
46
46
dsgasdd = dsiondd + dsepdd + dscouldd
47
47
dsgasdt = dsiondt + dsepdt + dscouldt
You can’t perform that action at this time.
0 commit comments