Skip to content

convert all common variables to a string in Fortran using unlimited polymorphic variables

License

Notifications You must be signed in to change notification settings

urbanjost/M_msg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation




DEPRECATED (at least for now) -- see M_framework





Name

M_msg

Description

This is a collection of modules useful for creating messages, logfiles and performing unit tests,

  • M_msg is a small module that can convert a list of variables of any of the most common default types to a string.

    It performs low-level operations that are often used by other larger modules so it is in its own module to prevent circular dependencies.

  • M_verify contains procedures useful for generating unit tests

  • M_journal allows for creating log and journal files

  • M_messages includes messages containing line art, ASCII plotting procedures, and various table presentations.

LineArt Messages

The lineart routines files display eye-catching messages as block letters or with ASCII art.

  • junbad - print an eye-catching image of a skull.
  • junbat - print an eye-catching image of a bat.
  • junbuster - es] call journal(3f) to print eye-catching ASCII graphic (ghostbuster)
  • jundragon - fill in a character array with a message
  • junroach - print an eye-catching image of a roach.
  • junsun - print an eye-catching image of a smiling sun.
  • juntrolls - print an eye-catching bulletin

Message Routines

Generic procedures that are used to generate messages.

  • blocks - write large block letters

  • signs - write out string in large block letters

  • percent_done - non-advancing status counter displays percentage done on terminal displays

  • tabgraph - write out a row of numbers and a text-based scaled graph

Building the Module

A conventional GNU/Linux or Unix install:

     git clone https://github.com/urbanjost/M_msg.git
     cd M_msg/src
     # change Makefile if not using one of the listed compilers
     
     # for gfortran
     make clean
     make F90=gfortran gfortran
     
     # for ifort
     make clean
     make F90=ifort ifort

     # for nvfortran
     make clean
     make F90=nvfortran nvfortran

This will compile the Fortran module and basic test programs

Optionally

Supports FPM fpm

Alternatively, download the github repository and build it with fpm ( as described at Fortran Package Manager )

     git clone https://github.com/urbanjost/M_msg.git
     cd M_msg
     fpm test

or just list it as a dependency in your fpm.toml project file.

     [dependencies]
     M_msg        = { git = "https://github.com/urbanjost/M_msg.git" }

(registered at the fpm(1) registry )

Documentation docs

User

Additional Directory Descriptions

There are

  • src/ is where the source for the M_msg(3f) modules resides
  • docs/ contains HTML documentation and the manpage archives
  • test/ contains a simple test program
  • example/ has demos

About

convert all common variables to a string in Fortran using unlimited polymorphic variables

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published