FORTRAN(1)

πŸ‘‘ FORTRAN(1) β€” the NAME era πŸ’…

okay bestie, so Fortran β€” and yes this is the User Commands corner of the manual, section 1, iykyk β€” is out here doing one (1) job: it reports statistics regarding an HDF5 file and the objects in the file. that's the whole vibe. periodt. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the usage, and no I did not make this up, this is literally what it says:

usage: h5fc [OPTIONS] <compile line>

✨ OPTIONS ✨

  • -help β€” the help message. it helps. iconic behaviour honestly 🫢
  • -echo β€” shows you all the shell commands it executed. full transparency, no gatekeeping πŸ’–
  • -prefix=DIR β€” the prefix directory where it goes looking for the HDF5 lib/ and include/ subdirectories. default is /usr. she has a comfort zone πŸ’…
  • -show β€” shows you the commands without executing them. look, don't touch 🌸
  • -showconfig β€” shows the HDF5 library configuration summary πŸ“‹
  • -shlib β€” compile with shared HDF5 libraries ✨
  • -noshlib β€” compile with static HDF5 libraries. and this one is the default πŸŽ€
  • <compile line> β€” the normal compile line options for your compiler. yes, your actual compiler's actual flags. main character energy for your compiler fr fr

ngl, here's the tea: h5fc uses the same compiler you used to compile HDF5. check with your compiler's man pages for more info on which options are needed β€” she's not gonna guess for you, bestie 😭

and you can override the compiler and the linker to compile your program by setting these environment variables accordingly:

  • HDF5_FC β€” use a different Fortran 90 or 95 compiler πŸ”₯
  • HDF5_FLINKER β€” use a different linker
  • HDF5_USE_SHLIB=[yes|no] β€” use shared or static version of the HDF5 library. default: no

🧚 the "you can also tweak paths and flags" section πŸ’œ

you can also add or change paths and flags to the compile line using the following environment variables β€” or by assigning them to their counterparts in the 'Things You Can Modify to Override...' section of h5fc. yes that's the actual name of the section. we love a descriptive queen ✨

Variable β†’ Current value to be replaced

  • HDF5_FFLAGS β†’ ""
  • HDF5_LDFLAGS β†’ ""
  • HDF5_LIBS β†’ ""
⚠️ okay important one, don't skip this: note that adding library paths to HDF5_LDFLAGS where another hdf5 version is located may link your program with that other hdf5 library version. so like… be careful. that's not a vibe, that's a bug waiting to happen πŸ’€

Copyright Β© 2011 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law. (yes, the all-caps is theirs, and yes, they mean it 😭) You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. πŸ“œ


🌈 SEE ALSO 🌈

the full documentation for Fortran is maintained as a Texinfo manual. if the info and Fortran programs are properly installed at your site, the command

info Fortran

should give you access to the complete manual. go off, read the whole thing, she's thorough πŸ’…


and that's the whole page, babe β€” it's Fortran from the Debian 4.6.1-4 packaging, version 4.6.1, dated August 2011, filed under FORTRAN(1). retro queen. she ate and left no crumbs πŸŽ€βœ¨πŸ¦‹