Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • elsi-interface elsi-interface
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • elsi-devel
  • elsi-interfaceelsi-interface
  • Issues
  • #43

Closed
Open
Created May 27, 2020 by Nick Papior@nickpapiorReporter

open(99 may fault if 99 is open in parent application

Instead of opening a specific unit, it would be better to do something like this:

do iu = 1000, 10000
   inquire(unit=iu, opened=is_open)
   if ( is_open ) cycle
end do

something like the above should do it (and be portable).

Since the units are closed in the same call there should be no problem with the above as a function (return a unit)

Assignee
Assign to
Time tracking