Skip to content

Commit d9224fd

Browse files
committed
output_hydro.f90 edited online with Bitbucket
1 parent 7cd415d commit d9224fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mhd/output_hydro.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ subroutine backup_hydro(filename, filename_desc)
141141
do i = 1, ncache
142142
xdp(i) = uold(ind_grid(i)+iskip, ivar)/max(uold(ind_grid(i)+iskip, 1), smallr)
143143
end do
144-
if (imetal == ivar) then
144+
if (metal.and.imetal == ivar) then
145145
field_name = 'metallicity'
146146
else
147147
write(field_name, '("scalar_", i0.2)') ivar - 9-nener

0 commit comments

Comments
 (0)