CONSTANTS(5)

πŸ’– CONSTANTS(5) πŸ’–

the LAM FORTRAN LIBRARY manual, bestie ✨


🌸 NAME 🌸

CONSTANTS β€” constants for LAM Fortran programming 🫢


πŸŽ€ DESCRIPTION πŸŽ€

okay so, here's the whole vibe: this page is the big table of values that matter for all the constants used in LAM. It tells you what each constant is worth, what it means, and which cpp(1) header file it's hiding in. πŸ’…

To actually use these files, your Fortran source files need to go through cpp(1) before they get handed to the Fortran compiler. Some compiler drivers will just run cpp(1) for you automatically if the source file suffix is .F. no cap. πŸ”₯

And if you don't wanna deal with cpp(1) at all? You can literally just copy the constants into parameter statements in your Fortran source files instead. iconic behaviour. πŸ‘‘


🌈 Network Constants πŸ¦‹

  • LOCAL β€” value -2147483647 β€” local node β€” file NET.h
  • MAXNMSGLEN β€” value 8192 β€” maximum length of one message packet β€” file NET.h
  • NHDSIZE β€” value 8 β€” maximum size in words of ndata argument β€” file NET.h
  • NOTNODEID β€” value -2147483648 β€” error occurred in IGNDID(2) β€” file NET.h
  • NOTNODETYPE β€” value -2147483648 β€” error occurred in IGRTP(2) β€” file NET.h

🌟 Node Types ⭐

  • NTCAST β€” value 2 β€” multicast definition β€” file NET.h
  • NTWASTE β€” value 4 β€” not fully used/wasted β€” file NET.h
  • NTDISK β€” value 8 β€” node with attached disk β€” file NET.h
  • NTTUBE β€” value 16 β€” node with attached video unit β€” file NET.h
  • NTJONES β€” value 32 β€” node is a neighbour β€” file NET.h
  • NTBOOT β€” value 64 β€” neighbour node to boot β€” file NET.h
  • NTALL β€” value 127 β€” matches any type β€” file NET.h

πŸ’Œ Message Flags πŸ’Œ

  • NOBUF β€” value 16 β€” turn off buffering β€” file NET.h
  • NREEL β€” value 1024 β€” multireel β€” file NET.h
  • DRAWDATA β€” value 65536 β€” ndata representation will not be changed β€” file NET.h
  • DINT4DATA β€” value 131072 β€” ndata holds 8 32-bit integer β€” file NET.h
  • DFLT4DATA β€” value 262144 β€” ndata holds 8 single precision reals β€” file NET.h
  • DFLT8DATA β€” value 524288 β€” ndata holds 4 double precision reals β€” file NET.h
  • DRAWMSG β€” value 1048576 β€” nmsg representation will not be changed β€” file NET.h
  • DINT4MSG β€” value 2097152 β€” nmsg holds integers β€” file NET.h
  • DFLT4MSG β€” value 4194304 β€” nmsg holds single precision reals β€” file NET.h
  • DFLT8MSG β€” value 8388608 β€” nmsg holds double precision reals β€” file NET.h

🧚 Reserved Cast Identifiers 🧚

  • HOST2ALL β€” value -2147483646 β€” multicast from origin to all nodes β€” file NET.h
  • HOST2COMP β€” value -2147483642 β€” multicast from origin to compute nodes β€” file NET.h

πŸ“ File Flags πŸ“

  • O_RDONLY β€” value 0 β€” open for reading only β€” file FREQ.h
  • O_WRONLY β€” value 1 β€” open for writing only β€” file FREQ.h
  • O_RDWR β€” value 2 β€” open for reading and writing β€” file FREQ.h
  • O_APPEND β€” value 8 β€” append on each write β€” file FREQ.h
  • O_CREAT β€” value 512 β€” create file if it does not exist β€” file FREQ.h
  • O_TRUNC β€” value 1024 β€” truncate length to 0 β€” file FREQ.h
  • O_EXCL β€” value 2048 β€” error if create and file exists β€” file FREQ.h
  • O_SYNC β€” value 8192 β€” update file data and file status before writing β€” file FREQ.h
  • O_LOCK β€” value 65536 β€” lock file descriptor active β€” file FREQ.h
  • O_REUSE β€” value 131072 β€” reuse existing file descriptor β€” file FREQ.h
  • O_1WAY β€” value 4194304 β€” do not acknowledge writes β€” file FREQ.h

πŸ’œ Process Runtime Flags πŸ’œ

  • RTF_WAIT β€” value 16 β€” child sends a message to parent when it exits β€” file NET.h
  • RTF_TRACE β€” value 256 β€” enable process tracing β€” file NET.h

and that's the whole page, bestie!! every single constant, every value, every file, all accounted for πŸ’…βœ¨

this was LAM 7.1.4, dated July, 2007, and it's the CONSTANTS(5) page β€” mwah, go forth and parameter statement responsibly πŸŽ€πŸ«Ά