67 integer,
parameter :: max_lines = 20
68 character(len=256),
dimension(max_lines),
public :: message
69 character(len=68),
parameter,
public :: hyphens = &
70 '--------------------------------------------------------------------'
71 character(len=69),
parameter,
public :: shyphens =
'*'//hyphens
73 character(len=512),
private :: msg
75 character(len=64),
private :: oct_status =
'undefined'
77 type(sihash_t),
private :: namespace_unit
78 type(sphash_t),
private :: namespace_mpi_grp
79 character(len=256),
private :: msg_dir =
'exec'
111 integer :: experimentals
112 integer :: current_line
118 integer,
intent(in) :: signum
119 character(len=*),
intent(out) :: signame
132 character(len=*),
intent(in),
optional :: output_dir
134 logical :: trap_signals
136 if (
present(output_dir))
then
137 msg_dir = trim(output_dir)
186 type(sihash_iterator_t) :: it
191 if (experimentals > 0 .or. warnings > 0)
then
197 if (warnings > 0)
then
200 if (warnings > 1)
then
208 if (experimentals > 0)
then
212 if (experimentals > 1)
then
219 call messages_write(
' Since you used one or more experimental features, results are likely')
221 call messages_write(
' wrong and should not be considered as valid scientific data. Check')
224 call messages_write(
' https://www.octopus-code.org/documentation/main/variables/execution/debug/experimentalfeatures')
227 call messages_write(
' or contact the octopus developers for details.')
232 open(unit =
iunit_out, file = trim(msg_dir) //
'/messages', action =
'write')
233 write(
iunit_out,
'(a, i9)')
"warnings = ", warnings
234 write(
iunit_out,
'(a, i9)')
"experimental = ", experimentals
239 call it%start(namespace_unit)
240 do while(it%has_next())
242 if (iu /= stderr .and. iu /= stdout)
call io_close(iu)
252 type(
namespace_t),
optional,
intent(in) :: namespace
256 if (
present(namespace))
then
258 if (namespace%get()==
"")
then
263 iunit =
sihash_lookup( namespace_unit, namespace%get(), found)
265 if (.not. found)
then
267 iunit =
io_open(
"log", namespace=namespace, action=
"write")
280 type(
mpi_grp_t),
target,
intent(in) :: mpigrp
283 assert(namespace_mpi_grp%is_associated())
290 type(
namespace_t),
optional,
intent(in) :: namespace
293 class(*),
pointer :: value
296 if (
present(namespace))
then
298 assert(namespace_mpi_grp%is_associated())
300 value =>
sphash_lookup(namespace_mpi_grp, trim(namespace%get()), found)
311 write(message(1),*)
"Cannot get mpi_grp for namespace ",namespace%get()
322 integer,
optional,
intent(in) :: no_lines
323 logical,
optional,
intent(in) :: only_root_writes
324 type(
namespace_t),
optional,
intent(in) :: namespace
327 integer :: ii, no_lines_
328 logical :: only_root_writes_, should_write
329 integer,
allocatable :: recv_buf(:)
330 type(mpi_request),
allocatable :: recv_req(:)
332 integer,
parameter :: fatal_tag = 32767
334 type(mpi_request) :: send_req
337 no_lines_ = current_line
338 if (
present(no_lines)) no_lines_ = no_lines
342 if (
present(only_root_writes))
then
343 should_write =
mpi_grp_is_root(msg_mpi_grp) .or. (.not. only_root_writes)
344 only_root_writes_ = only_root_writes
346 should_write = .
true.
347 only_root_writes_ = .false.
356 if (.not. only_root_writes_)
then
357 if (msg_mpi_grp%rank == 0)
then
359 allocate(recv_buf(1:msg_mpi_grp%size - 1))
360 allocate(recv_req(1:msg_mpi_grp%size - 1))
361 do ii = 1, msg_mpi_grp%size - 1
363 call mpi_recv_init(recv_buf(ii), 1, mpi_integer, ii, fatal_tag, msg_mpi_grp%comm, recv_req(ii),
mpi_err)
372 call mpi_send_init(1, 1, mpi_integer, 0, fatal_tag, msg_mpi_grp%comm, send_req,
mpi_err)
377 call mpi_test(send_req, received, mpi_status_ignore,
mpi_err)
379 should_write = .false.
393 write(msg,
'(a)')
'*** Fatal Error (description follows)'
396 if (
present(namespace))
then
397 if (len_trim(namespace%get()) > 0)
then
398 write(msg,
'(3a)')
'* In namespace ', trim(namespace%get()),
':'
404 if (.not. only_root_writes_ .or. .not.
mpi_grp_is_root(msg_mpi_grp))
then
406 write(msg,
'(a,i4)')
"* From node = ", msg_mpi_grp%rank
412 write(msg,
'(a,1x,a)')
'*', trim(message(ii))
419 if (
debug%trace)
then
422 write(msg,
'(a)')
'* Stack: '
425 write(msg,
'(a,a)')
' > ', trim(
sub_stack(ii))
431 if (should_write)
then
445 integer,
optional,
intent(in) :: no_lines
446 logical,
optional,
intent(in) :: all_nodes
447 type(
namespace_t),
optional,
intent(in) :: namespace
449 integer :: il, no_lines_
450 integer :: iunit_namespace
451 logical :: have_to_write, all_nodes_
454 no_lines_ = current_line
455 if (
present(no_lines)) no_lines_ = no_lines
457 warnings = warnings + 1
465 if (
present(all_nodes))
then
466 have_to_write = have_to_write .or. all_nodes
467 all_nodes_ = all_nodes
470 if (have_to_write)
then
473 if (iunit_namespace /= stdout)
then
476 write(msg,
'(a)')
'** Warning:'
478 if (iunit_namespace /= stdout)
then
482 if (
present(namespace))
then
483 if (len_trim(namespace%get()) > 0)
then
484 write(msg,
'(3a)')
'** In namespace ', trim(namespace%get()),
':'
491 write(msg ,
'(a,i4)')
'** From node = ',
mpi_world%rank
493 if (iunit_namespace /= stdout)
then
500 write(msg ,
'(a,3x,a)')
'**', trim(message(il))
502 if (iunit_namespace /= stdout)
then
507 if (iunit_namespace /= stdout)
then
512 if (iunit_namespace /= stdout)
then
513 flush(iunit_namespace)
523 subroutine messages_info(no_lines, iunit, debug_only, stress, all_nodes, namespace)
524 integer,
optional,
intent(in) :: no_lines
525 integer,
optional,
intent(in) :: iunit
526 logical,
optional,
intent(in) :: debug_only
527 logical,
optional,
intent(in) :: stress
528 logical,
optional,
intent(in) :: all_nodes
529 type(
namespace_t),
optional,
intent(in) :: namespace
531 integer :: il, no_lines_
535 assert(.not. (
present(iunit) .and.
present(namespace)))
537 if (
present(iunit))
then
549 no_lines_ = current_line
550 if (
present(no_lines)) no_lines_ = no_lines
552 if (
present(stress))
then
558 write(msg,
'(a)') trim(message(il))
562 if (
present(stress))
then
575 character(len=*),
intent(in) :: status
581 call loct_rm(trim(msg_dir) //
'/oct-status-running')
582 call loct_rm(trim(msg_dir) //
'/oct-status-finished')
583 call loct_rm(trim(msg_dir) //
'/oct-status-aborted')
584 if (oct_status /=
'walltimer-aborted')
then
585 call loct_rm(trim(msg_dir) //
'/oct-status-walltimer-aborted')
591 open(unit=
iunit_err, file=trim(msg_dir) //
'/oct-status-'//trim(status), &
592 action=
'write', status=
'unknown')
599 integer(int64),
intent(in) :: size
600 character(len=*),
intent(in) :: file
601 integer,
intent(in) :: line
603 write(message(1),
'(a,i18,3a,i5)')
"Failed to allocate ",
size,
" words in file '", trim(file),
"' line ", line
610 integer(int64),
intent(in) :: size
611 character(len=*),
intent(in) :: file
612 integer,
intent(in) :: line
614 write(message(1),
'(a,i18,3a,i5)')
"Failed to deallocate array of ",
size,
" words in file '", trim(file),
"' line ", line
622 character(len=*),
intent(in) :: var
623 character(len=*),
optional,
intent(in) :: details
624 integer,
optional,
intent(in) :: row
625 integer,
optional,
intent(in) :: column
627 character(len=10) :: row_str, column_str
629 call messages_write(
'Input error in the input variable '// trim(var))
631 if (
present(row))
then
635 write(row_str,
'(I10)') row + 1
637 if (
present(column))
then
638 write(column_str,
'(I10)') column + 1
642 if (
present(details))
then
651 call messages_write(
'You can get the documentation of the variable with the command:', new_line = .
true.)
659 character(len=*),
intent(in) :: var
660 integer,
intent(in) :: val
661 integer,
optional,
intent(in) :: iunit
662 type(
namespace_t),
optional,
intent(in) :: namespace
664 character(len=10) :: intstring
666 assert(.not. (
present(iunit) .and.
present(namespace)))
668 write(intstring,
'(i10)') val
669 message(1) =
'Input: ['//trim(var)//
' = '//trim(adjustl(intstring))//
']'
676 character(len=*),
intent(in) :: var
677 character(len=*),
intent(in) :: val
678 integer,
optional,
intent(in) :: iunit
679 type(
namespace_t),
optional,
intent(in) :: namespace
681 assert(.not. (
present(iunit) .and.
present(namespace)))
683 message(1) =
'Input: ['//trim(var)//
' = '//trim(val)//
']'
690 character(len=*),
intent(in) :: var
691 real(real64),
intent(in) :: val
692 type(
unit_t),
optional,
intent(in) :: unit
693 integer,
optional,
intent(in) :: iunit
694 type(
namespace_t),
optional,
intent(in) :: namespace
696 character(len=11) :: floatstring
698 assert(.not. (
present(iunit) .and.
present(namespace)))
700 if (.not.
present(unit))
then
701 write(floatstring,
'(g11.4)') val
702 message(1) =
'Input: ['//trim(var)//
' = '//trim(adjustl(floatstring))//
']'
705 message(1) =
'Input: ['//trim(var)//
' = '//trim(adjustl(floatstring))//
' '//trim(
units_abbrev(unit))//
']'
713 character(len=*),
intent(in) :: var
714 logical,
intent(in) :: val
715 integer,
optional,
intent(in) :: iunit
716 type(
namespace_t),
optional,
intent(in) :: namespace
718 character(len=3) :: lstring
720 assert(.not. (
present(iunit) .and.
present(namespace)))
727 message(1) =
'Input: ['//trim(var)//
' = '//trim(lstring)//
']'
734 character(len=*),
intent(in) :: var
735 real(real64),
intent(in) :: val(:)
736 type(
unit_t),
optional,
intent(in) :: unit
737 integer,
optional,
intent(in) :: iunit
738 type(
namespace_t),
optional,
intent(in) :: namespace
741 character(len=11) :: floatstring
743 assert(.not. (
present(iunit) .and.
present(namespace)))
747 write(floatstring,
'(g11.4)') val(ii)
752 if (
present(unit))
then
763 character(len=*),
intent(in) :: var
764 integer,
optional,
intent(in) :: iunit
765 type(
namespace_t),
optional,
intent(in) :: namespace
770 assert(.not. (
present(iunit) .and.
present(namespace)))
776 if (
present(iunit))
then
787 character(len=*),
intent(in) :: var
788 integer(int64),
intent(in) :: option
789 character(len=*),
optional,
intent(in) :: pre
790 integer,
optional,
intent(in) :: iunit
791 type(
namespace_t),
optional,
intent(in) :: namespace
793 integer :: option4, iunit_
796 assert(.not. (
present(iunit) .and.
present(namespace)))
801 option4 = int(option, int32)
803 if (
present(iunit))
then
814 character(len=*),
intent(in) :: var
815 integer(int32),
intent(in) :: option
816 character(len=*),
optional,
intent(in) :: pre
817 integer,
optional,
intent(in) :: iunit
818 type(
namespace_t),
optional,
intent(in) :: namespace
820 assert(.not. (
present(iunit) .and.
present(namespace)))
828 character(len=*),
optional,
intent(in) :: msg
829 integer,
optional,
intent(in) :: iunit
830 type(
namespace_t),
optional,
intent(in) :: namespace
832 integer,
parameter :: max_len = 70
834 integer :: ii, jj, length
836 character(len=70) :: str
837 character(len=max_len) :: msg_combined
840 if (
present(iunit))
then
849 if (
present(msg))
then
851 if (len_trim(msg) > max_len)
then
852 msg_combined = trim(msg(1:max_len))
854 msg_combined = trim(msg)
856 length = len_trim(msg_combined)
861 do ii = 1, (max_len - (length + 2))/2
870 str(jj:jj) = msg_combined(ii:ii)
898 character(len = *),
intent(in) :: str
899 integer,
intent(in) :: iunit
900 character(len = *),
optional,
intent(in) :: adv
902 character(len = 20) :: adv_
905 if (
present(adv)) adv_ = trim(adv)
907 write(iunit,
'(a)', advance=adv_) trim(str)
913 character(len = *),
intent(in) :: str
917 call date_and_time(
values=val)
919 write(message(3),
'(a,i4,a1,i2.2,a1,i2.2,a,i2.2,a1,i2.2,a1,i2.2)') &
920 str , val(1),
"/", val(2),
"/", val(3), &
921 " at ", val(5),
":", val(6),
":", val(7)
931 subroutine time_sum(sec1, usec1, sec2, usec2)
932 integer,
intent(in) :: sec1
933 integer,
intent(in) :: usec1
934 integer,
intent(inout) :: sec2
935 integer,
intent(inout) :: usec2
940 usec2 = usec1 + usec2
943 if (usec2 >= 1000000)
then
945 usec2 = usec2 - 1000000
954 character(len=*),
intent(in) :: name
955 character(len=*),
optional,
intent(in) :: rep
959 write(message(1),
'(a)')
'Input variable '//trim(name)//
' is obsolete.'
961 if (
present(rep))
then
962 write(message(2),
'(a)')
' '
963 write(message(3),
'(a)')
'Equivalent functionality can be obtained with the '//trim(rep)
964 write(message(4),
'(a)')
'variable. Check the documentation for details.'
965 write(message(5),
'(a)')
'(You can use the `oct-help -p '//trim(rep)//
'` command).'
978 character(len=*),
intent(in) :: name
982 write(message(1),
'(a)')
'Input variable `'//trim(name)//
'` must be defined as a block.'
983 write(message(2),
'(a)')
'Please check the documentation for details.'
984 write(message(3),
'(a)')
'(You can use the `oct-help -p '//trim(name)//
'` command).'
993 character(len=*),
intent(in) :: name
994 type(
namespace_t),
optional,
intent(in) :: namespace
996 experimentals = experimentals + 1
998 if (.not.
conf%devel_version)
then
1002 call messages_write(
'If you still want to use this feature (at your own risk), check:')
1005 call messages_write(
'https://www.octopus-code.org/documentation/main/variables/execution/debug/experimentalfeatures')
1009 write(message(1),
'(a)') trim(name)//
' is under development.'
1010 write(message(2),
'(a)')
'It might not work or produce wrong results.'
1014 warnings = warnings - 1
1021 character(len=*),
intent(in) :: feature
1022 type(
namespace_t),
optional,
intent(in) :: namespace
1026 message(1) = trim(feature)//
" not implemented."
1043 current_line = current_line + 1
1044 if (current_line > max_lines) stop
'Too many message lines.'
1046 message(current_line) =
''
1052 real(real64),
intent(in) :: val
1053 character(len=*),
optional,
intent(in) :: fmt
1054 logical,
optional,
intent(in) :: new_line
1055 type(
unit_t),
optional,
intent(in) :: units
1056 logical,
optional,
intent(in) :: align_left
1057 logical,
optional,
intent(in) :: print_units
1059 character(len=30) :: number
1060 real(real64) :: tval
1065 if (
present(fmt))
then
1066 write(number,
'('//trim(fmt)//
')') tval
1068 write(number,
'(f12.6)') tval
1072 number = adjustl(number)
1073 number(1:len(number)) =
' '//number(1:len(number)-1)
1076 write(message(current_line),
'(a, a)') trim(message(current_line)), trim(number)
1079 write(message(current_line),
'(a, a, a)') trim(message(current_line)),
' ', trim(
units_abbrev(units))
1088 integer(int64),
intent(in) :: val
1089 character(len=*),
optional,
intent(in) :: fmt
1090 logical,
optional,
intent(in) :: new_line
1091 type(
unit_t),
optional,
intent(in) :: units
1092 logical,
optional,
intent(in) :: print_units
1094 character(len=20) :: number
1095 real(real64) :: val_conv_float
1097 if (
present(units))
then
1100 if (
present(fmt))
then
1101 write(message(current_line),
'(a, '//trim(fmt)//
')') trim(message(current_line)), val_conv_float
1103 write(number,
'(f15.3)') val_conv_float
1104 write(message(current_line),
'(3a)') trim(message(current_line)),
' ', trim(adjustl(number))
1109 if (
present(fmt))
then
1110 write(message(current_line),
'(a, '//trim(fmt)//
')') trim(message(current_line)), val
1112 write(number,
'(i12)') val
1113 write(message(current_line),
'(3a)') trim(message(current_line)),
' ', trim(adjustl(number))
1120 write(message(current_line),
'(a, a, a)') trim(message(current_line)),
' ', trim(adjustl(
units_abbrev(units)))
1123 if (
present(new_line))
then
1131 integer(int32),
intent(in) :: val
1132 character(len=*),
optional,
intent(in) :: fmt
1133 logical,
optional,
intent(in) :: new_line
1135 logical,
optional,
intent(in) :: print_units
1143 character(len=*),
intent(in) :: val
1144 character(len=*),
optional,
intent(in) :: fmt
1145 logical,
optional,
intent(in) :: new_line
1147 character(len=100) :: fmt_
1149 if (len(trim(message(current_line))) + len(trim(val)) > len(message(current_line)))
then
1152 write(error_unit, *)
"Exceeded message line length limit, to write string:", trim(val)
1155 write(message(current_line),
'(a, '//trim(fmt_)//
')') trim(message(current_line)), trim(val)
1158 if (
present(new_line))
then
1166 logical,
intent(in) :: val
1167 logical,
optional,
intent(in) :: new_line
1169 character(len=3) :: text
1177 if (len(trim(message(current_line))) + len(trim(text)) > len(message(current_line)))
then
1178 write(message(current_line + 1),
'(3a)')
"Exceeded message line length limit, to write logical value '", trim(text),
"'"
1182 write(message(current_line),
'(a,1x,a)') trim(message(current_line)), trim(text)
1184 if (
present(new_line))
then
1192 integer,
intent(in) :: isignal
1195 character(len=300) :: description
1199 write(msg,
'(a)')
''
1201 write(msg,
'(a)')
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'
1203 write(msg,
'(a)')
''
1205 write(msg,
'(a,i2,2a)')
' Octopus was killed by signal ', isignal,
': ', trim(description)
1207 write(msg,
'(a,i2)')
''
1209 write(msg,
'(a)')
' Note: Octopus is currently trapping signals. This might prevent the'
1211 write(msg,
'(a)')
' use of debuggers or the generation of core dumps. To change this'
1213 write(msg,
'(a)')
' behavior, use the DebugTrapSignals input option.'
1215 write(msg,
'(a)')
''
1217 write(msg,
'(a)')
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'
1220 if (
debug%trace)
then
1223 write(msg,
'(a)')
'Octopus debug trace: '
1226 write(msg,
'(a,a)')
' > ', trim(
sub_stack(ii))
1231 write(msg,
'(a)')
" Octopus debug trace not available. You can enable it with 'Debug = trace'."
1250 character(len=*),
intent(in) :: s, f
1251 integer,
intent(in) :: l
1266 call messages_write(
'This should not happen and is likely a bug in the code.')
1268 call messages_write(
'Please contact the developers and report how this occurred.')
1270 call messages_write(
'You can open an issue on gitlab as described in Contributing.md.')
1284 integer(c_int),
intent(in) :: isignal
Prints out to iunit a message in the form: ["InputVariable" = value] where "InputVariable" is given b...
subroutine handle_segv(isignal)
subroutine assert_die(s, f, l)
This subroutine is called by the assert macro, it is not in a module so it can be called from any fil...
character(len=max_path_len) function, public debug_clean_path(filename)
Prune a filename path to only include subdirectories of the "src" directory.
type(debug_t), save, public debug
subroutine, public debug_init(this, namespace)
integer, public no_sub_stack
character(len=80), dimension(50), public sub_stack
The stack.
type(conf_t), public conf
Global instance of Octopus configuration.
subroutine, public io_close(iunit, grp)
subroutine, public io_mkdir(fname, namespace, parents)
integer, parameter, public iunit_out
integer, parameter, public iunit_err
integer function, public io_open(file, namespace, action, status, form, position, die, recl, grp)
subroutine, public alloc_error(size, file, line)
subroutine, public messages_end()
subroutine messages_write_integer8(val, fmt, new_line, units, print_units)
subroutine, public messages_print_with_emphasis(msg, iunit, namespace)
subroutine, public messages_not_implemented(feature, namespace)
subroutine, public messages_init(output_dir)
subroutine messages_print_var_option_8(var, option, pre, iunit, namespace)
subroutine messages_print_var_valuear(var, val, unit, iunit, namespace)
subroutine, public messages_variable_is_block(namespace, name)
subroutine, public messages_warning(no_lines, all_nodes, namespace)
subroutine messages_write_integer(val, fmt, new_line, units, print_units)
subroutine, public time_sum(sec1, usec1, sec2, usec2)
Computes t2 <- t1+t2. Parameters as in time_diff Assert: t1,2 <= 0.
subroutine messages_print_var_option_4(var, option, pre, iunit, namespace)
subroutine, public messages_obsolete_variable(namespace, name, rep)
subroutine, public messages_switch_status(status)
create status file for asynchronous communication
subroutine, public print_date(str)
subroutine flush_msg(str, iunit, adv)
subroutine, public messages_print_var_info(var, iunit, namespace)
subroutine, public messages_update_mpi_grp(namespace, mpigrp)
subroutine, public messages_new_line()
subroutine, public dealloc_error(size, file, line)
subroutine messages_print_var_values(var, val, iunit, namespace)
subroutine, public messages_fatal(no_lines, only_root_writes, namespace)
subroutine messages_print_var_valuei(var, val, iunit, namespace)
subroutine, public messages_input_error(namespace, var, details, row, column)
subroutine messages_print_var_valuer(var, val, unit, iunit, namespace)
integer, parameter, private sleepytime_nonwriters
seconds
subroutine, public messages_experimental(name, namespace)
subroutine messages_print_var_valuel(var, val, iunit, namespace)
subroutine messages_write_logical(val, new_line)
subroutine, public messages_info(no_lines, iunit, debug_only, stress, all_nodes, namespace)
subroutine messages_write_str(val, fmt, new_line)
type(mpi_grp_t) function messages_get_mpi_grp(namespace)
subroutine, public messages_dump_stack(isignal)
integer function messages_get_unit(namespace)
subroutine messages_write_float(val, fmt, new_line, units, align_left, print_units)
subroutine messages_reset_lines()
logical function mpi_grp_is_root(grp)
Is the current MPI process of grpcomm, root.
type(mpi_grp_t), public mpi_world
integer, public mpi_err
used to store return values of mpi calls
type(namespace_t), public global_namespace
logical function, public parse_is_defined(namespace, name)
This module implements a simple hash table for string valued keys and integer values using the C++ ST...
subroutine, public sihash_insert(h, key, val)
Insert a (key, val) pair into the hash table h.
subroutine, public sihash_init(h)
Initialize a hash table h with size entries. Since we use separate chaining, the number of entries in...
integer function, public sihash_lookup(h, key, found)
Look up a value in the hash table h. If found is present, it indicates if key could be found in the t...
subroutine, public sihash_end(h)
Free a hash table.
This module implements a simple hash table for string valued keys and integer values using the C++ ST...
subroutine, public sphash_init(h)
Initialize a hash table h with size entries. Since we use separate chaining, the number of entries in...
subroutine, public sphash_insert(h, key, val, clone)
Insert a (key, val) pair into the hash table h. If clone=.true., the object will be copied.
subroutine, public sphash_end(h)
Free a hash table.
class(*) function, pointer, public sphash_lookup(h, key, found)
Look up a value in the hash table h. If found is present, it indicates if key could be found in the t...
character(len=80) function, public str_center(s_in, l_in)
puts space around string, so that it is centered
brief This module defines the class unit_t which is used by the unit_systems_oct_m module.
character(len=20) pure function, public units_abbrev(this)
subroutine, public varinfo_print_option(iunit, var, option, pre)
subroutine, public varinfo_print(iunit, var, ierr)
This is defined even when running serial.
real(real64) function values(xx)