uclchem / UCLCHEM

UCLCHEM - A gas-grain chemical code for Astrochemistry.
MIT License
29 stars 14 forks source link

Vdiff indexing #7

Closed jonholdship closed 4 years ago

jonholdship commented 4 years ago

Most recent update to network.f90 broke the indexing of the vdiff array in the thermal desorption branch.

Vdiff has length nspecies but we only need it for surface species.

Currently, if a grain species is at position i in the grain array and j in the species array, it's diffusion rate is placed at position i in the vdiff array.

Then, in rates.f90, it is accessed at position j so we get the wrong value.