Closed sbryngelson closed 1 week ago
All subroutine argument variables in the entire code should have an intent.
intent
For example, in the below, idir should have an intent(in): https://github.com/MFlowCode/MFC/blob/31aed98a45c010df5226bedefcc910f1b119c1f5/src/simulation/m_bubbles.fpp#L129
idir
intent(in)
Options are intent(in), intent(out), and, if neither applies, intent(inout).
intent(out)
intent(inout)
I wish I knew how to get the compiler to spit out warnings for this, but I'm unsure if there is a flag.
completed with #477 #478 #480 #479 thanks @okBrian
All subroutine argument variables in the entire code should have an
intent
.For example, in the below,
idir
should have anintent(in)
: https://github.com/MFlowCode/MFC/blob/31aed98a45c010df5226bedefcc910f1b119c1f5/src/simulation/m_bubbles.fpp#L129Options are
intent(in)
,intent(out)
, and, if neither applies,intent(inout)
.I wish I knew how to get the compiler to spit out warnings for this, but I'm unsure if there is a flag.