Skip to content

Commit

Permalink
* fix passing scalar values for array arguments with length 1,
Browse files Browse the repository at this point in the history
  which is ok in principle but now gets a compiler warning under
  gfortran version 11. [rtj]
  • Loading branch information
rjones30 committed Nov 6, 2023
1 parent eeb8a2c commit f04f93e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hdds-geant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,12 @@ int FortranWriter::createMaterial(DOMElement* el)
<< std::endl
<< " imate = " << imate << std::endl
<< " namate = \'" << S(matS) << "\'" << std::endl
<< " a = " << a << std::endl
<< " z = " << z << std::endl
<< " amat(1) = " << a << std::endl
<< " zmat(1) = " << z << std::endl
<< " dens = " << dens << std::endl
<< " nlmat = 1" << std::endl
<< " wmat(1) = 1" << std::endl
<< " call gsmixt(imate,namate,a,z,dens,nlmat,wmat)"
<< " call gsmixt(imate,namate,amat,zmat,dens,nlmat,wmat)"
<< std::endl;
}
else
Expand Down

0 comments on commit f04f93e

Please sign in to comment.