Octopus
global.F90
Go to the documentation of this file.
1!! Copyright (C) 2002-2006 M. Marques, A. Castro, A. Rubio, G. Bertsch
2!!
3!! This program is free software; you can redistribute it and/or modify
4!! it under the terms of the GNU General Public License as published by
5!! the Free Software Foundation; either version 2, or (at your option)
6!! any later version.
7!!
8!! This program is distributed in the hope that it will be useful,
9!! but WITHOUT ANY WARRANTY; without even the implied warranty of
10!! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11!! GNU General Public License for more details.
12!!
13!! You should have received a copy of the GNU General Public License
14!! along with this program; if not, write to the Free Software
15!! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16!! 02110-1301, USA.
17!!
18
19#include "global.h"
20#include "build_info.h"
21
22module global_oct_m
23 use, intrinsic :: iso_c_binding, only: c_int
24 use, intrinsic :: iso_fortran_env
26 use loct_oct_m
27 use mpi_oct_m
28 use string_oct_m
30#ifdef HAVE_OPENMP
31 use omp_lib
32#endif
33
34 implicit none
35
36 private
37
39 public :: &
40 conf_t, &
42 global_end, &
45 assert_die, &
47 operator(+), &
48 bitand, &
49 int32, int64, &
50 real32, real64, &
51 i4_to_i8, &
53 ! Make these kind variables from kind_oct_m public here so that they are
54 ! available basically everywhere in the code. They still need to be in a
55 ! separate module because they are also needed in some low-level modules.
56
57 interface
58 function openblas_get_version(major, minor, patch) bind(C) result(ierr)
59 use, intrinsic :: iso_c_binding, only: c_int
60 integer(c_int), intent(inout) :: major, minor, patch
61 integer(c_int) :: ierr
62 end function
63 end interface
64
65 integer, public, parameter :: MAX_PATH_LEN=512
66 integer, public, parameter :: MAX_OUTPUT_TYPES=46
67
69 type conf_t
70 logical :: devel_version
71 logical :: report_memory
72 character(len=:), allocatable :: share
73 character(len=:), allocatable :: build_dir
74 character(len=:), allocatable :: git_commit
75 character(len=:), allocatable :: config_time
76 character(len=:), allocatable :: version
77 character(len=:), allocatable :: cc
78 character(len=:), allocatable :: cxx
79 character(len=:), allocatable :: fc
80 character(len=:), allocatable :: cflags
81 character(len=:), allocatable :: cxxflags
82 character(len=:), allocatable :: fcflags
83 integer :: target_states_block_size = -1
84 contains
85 procedure :: init => conf_init
86 procedure :: end => conf_end
87 end type conf_t
88
90 type(conf_t), public :: conf
91
92 real(real64), public, parameter :: R_SMALL = 1e-8_real64
93
95 real(real64), public, parameter :: R_MIN_ATOM_DIST = 1e-3_real64
96
98 real(real64), public, parameter :: M_Pi = 3.1415926535897932384626433832795029_real64
99 real(real64), public, parameter :: M_E = 2.7182818284590452353602874713526625_real64
100 real(real64), public, parameter :: M_ZERO = 0.0_real64
101 real(real64), public, parameter :: M_ONE = 1.0_real64
102 real(real64), public, parameter :: M_TWO = 2.0_real64
103 real(real64), public, parameter :: M_THREE = 3.0_real64
104 real(real64), public, parameter :: M_FOUR = 4.0_real64
105 real(real64), public, parameter :: M_FIVE = 5.0_real64
106 real(real64), public, parameter :: M_HALF = 0.5_real64
107 real(real64), public, parameter :: M_THIRD = m_one/m_three
108 real(real64), public, parameter :: M_TWOTHIRD = m_two/m_three
109 real(real64), public, parameter :: M_FOURTH = m_one/m_four
110 complex(real64), public, parameter :: M_z0 = (0.0_real64, 0.0_real64)
111 complex(real64), public, parameter :: M_z1 = (1.0_real64, 0.0_real64)
112 complex(real64), public, parameter :: M_z2 = (2.0_real64, 0.0_real64)
113 complex(real64), public, parameter :: M_z2I = (0.0_real64, 2.0_real64)
114 complex(real64), public, parameter :: M_zI = (0.0_real64, 1.0_real64)
115
116 real(real64), public, parameter :: M_EPSILON = epsilon(m_one)
117 real(real64), public, parameter :: M_TINY = tiny(m_one)
118 real(real64), public, parameter :: M_HUGE = huge(m_one)
119 real(real64), public, parameter :: M_MIN_EXP_ARG = -650_real64
120 real(real64), public, parameter :: M_MAX_EXP_ARG = 700_real64
121 real(real64), public, protected :: M_PINF
122 real(real64), public, protected :: M_NINF
123 real(real64), public, protected :: M_SNAN
124 real(real64), public, protected :: M_QNAN
125
127 real(real64), public, parameter :: M_MIN_OCC = 1.0e-10_real64
129 real(real64), public, parameter :: M_MIN_DENSITY = 1.0e-20_real64
131 real(real64), public, parameter :: m_degenerary_threshold = 1.0e-6_real64
132
134 real(real64), public, parameter :: lmm_r_single_atom = 100.0_real64
135
137 real(real64), public, parameter :: p_a_b = 0.52917720859_real64
138 real(real64), public, parameter :: p_ang = m_one / p_a_b
139 real(real64), public, parameter :: p_ry = 13.60569193_real64
140 real(real64), public, parameter :: p_ev = m_one / p_ry
141 real(real64), public, parameter :: p_kb = 8.617343e-5_real64/(m_two*p_ry)
142 real(real64), public, parameter :: P_c = 137.035999679_real64
144 real(real64), public, parameter :: p_g = 2.00231930436118_real64
145 real(real64), public, parameter :: p_proton_charge = -1.0_real64
146 real(real64), public, parameter :: p_ep = m_one/(m_four*m_pi)
147 real(real64), public, parameter :: p_mu = m_four*m_pi/(p_c**2)
150 integer, public, parameter :: &
152 hartree = 1, &
157
159 integer, public :: stderr, stdin, stdout
160
162 integer, public :: s_epoch_sec, s_epoch_usec
165 character(len=80), public :: sub_stack(50)
166 real(real64), public :: time_stack(50)
167 integer, public :: no_sub_stack = 0
170 logical, public :: in_profiling_mode = .false.
172 integer, public :: global_alloc_err
173 integer(int64), public :: global_sizeof
174 character(len=100), public :: global_alloc_errmsg
175 !$omp threadprivate(global_alloc_err, global_sizeof, global_alloc_errmsg)
177 ! The code directories should be defined here, and not hard coded in the Fortran files.
178 character(len=*), public, parameter :: gs_dir = "gs/"
179 character(len=*), public, parameter :: td_dir = "td/"
180 character(len=*), public, parameter :: static_dir = "static/"
181 character(len=*), public, parameter :: em_resp_dir = "em_resp/"
182 character(len=*), public, parameter :: em_resp_fd_dir = "em_resp_fd/"
183 character(len=*), public, parameter :: kdotp_dir = "kdotp/"
184 character(len=*), public, parameter :: vib_modes_dir = "vib_modes/"
185 character(len=*), public, parameter :: vdw_dir = "vdw/"
186 character(len=*), public, parameter :: casida_dir = "casida/"
187 character(len=*), public, parameter :: oct_dir = "opt-control/"
188 character(len=*), public, parameter :: pcm_dir = "pcm/"
189 character(len=*), public, parameter :: partition_dir = "partition/"
190 character(len=*), public, parameter :: iteration_dir = "iteration/"
191 character(len=*), public, parameter :: dm_dir = "dm/"
195 type(mpi_comm), public, parameter :: serial_dummy_comm = mpi_comm_undefined
197 ! End of declaration of public objects.
198 ! ---------------------------------------------------------
199
203 end interface optional_default
205
207 interface
208 subroutine assert_die(s, f, l)
209 implicit none
210 character(len=*), intent(in) :: s, f
211 integer, intent(in) :: l
212 end subroutine assert_die
213 end interface
215 interface operator (+)
216 module procedure cat
217 end interface operator (+)
219 interface bitand
220 module procedure bitand48
221 module procedure bitand84
222 module procedure bitand88
223 module procedure bitand44
224 end interface bitand
225
226 interface i4_to_i8
227 module procedure i4_to_i8_0, i4_to_i8_1
228 end interface i4_to_i8
229
230 interface i8_to_i4
231 module procedure i8_to_i4_0, i8_to_i4_1
232 end interface i8_to_i4
233
234contains
237 subroutine conf_init(this)
238 class(conf_t), intent(inout) :: this
240 character(len=MAX_PATH_LEN) :: share
241 character(len=MAX_PATH_LEN) :: path_exe, dir_exe
242
243 ! Not default initializations, so that build information does not end up in the .mod file
244 this%share = share_dir
245 this%build_dir = build_dir
246 this%git_commit = git_commit
247 this%config_time = build_time
248 this%version = package_version
249 this%cc = cc
250 this%cxx = cxx
251 this%fc = fc
252 this%cflags = cflags
253 this%cxxflags = cxxflags
254 this%fcflags = fcflags
256 ! First, get the environment variable OCTOPUS_SHARE that overrides the default
257 call loct_getenv("OCTOPUS_SHARE", share)
258 if (trim(share) /= "") then
259 this%share = trim(share)
260 return
261 end if
262 ! Second, try a share directory next to the binary; this makes it work in the build tree
263 call loct_executable_path(path_exe)
264 if (trim(path_exe) /= "") then
265 ! we got a useable path, search for the share folder
266 call loct_dirname(path_exe, dir_exe)
267 share = trim(dir_exe) // "/share"
268 if (loct_dir_exists(share)) then
269 this%share = trim(share)
270 return
271 end if
272 end if
273 ! Third, take the value from the configuration step, check if it exists
274 if (.not.loct_dir_exists(conf%share)) then
275 write(*, "(A)") "Error: could not find share directory."
276 write(*, "(A, A)") "Configured location: ", trim(conf%share)
277 stop
278 end if
279
280 end subroutine conf_init
283 subroutine conf_end(this)
284 class(conf_t), intent(inout) :: this
285
286 ! SAFE_DEALLOCATE unavailable in global.F90
287 if (allocated(this%share)) deallocate(this%share)
288 if (allocated(this%build_dir)) deallocate(this%build_dir)
289 if (allocated(this%git_commit)) deallocate(this%git_commit)
290 if (allocated(this%config_time)) deallocate(this%config_time)
291 if (allocated(this%version)) deallocate(this%version)
292 if (allocated(this%cc)) deallocate(this%cc)
293 if (allocated(this%cxx)) deallocate(this%cxx)
294 if (allocated(this%fc)) deallocate(this%fc)
295 if (allocated(this%cflags)) deallocate(this%cflags)
296 if (allocated(this%cxxflags)) deallocate(this%cxxflags)
297 if (allocated(this%fcflags)) deallocate(this%fcflags)
298
299 end subroutine conf_end
300
301
307 subroutine global_init(communicator)
308 type(MPI_Comm), intent(in), optional :: communicator
309
310 type(mpi_comm) :: comm
311
312 if (present(communicator)) then
313 comm = communicator
314 call check_threading_support(comm)
315 else
316 call mpi_init_comm(comm)
317 endif
318
319 call init_octopus_globals(comm)
320
322
323 ! Order of call is important. mpi_world is used implicitly by blacs_init
324 call blacs_init()
325
326 end subroutine global_init
327
328
334
335 integer(c_int) :: ierr, major, minor, patch
336
337 major = 0
338 minor = 0
339 patch = 0
340 ierr = openblas_get_version(major, minor, patch)
341
342 if (ierr == 0) then
343 ! Implies that the formatting of the config message has changed
344 error stop "openblas_get_config failed to return a version"
345 endif
346 if (ierr == 1 .and. major == 0 .and. minor == 3 .and. patch == 32) then
347 error stop "Octopus is linked to OpenBLAS 0.3.32, which is buggy"
348 end if
349
350 end subroutine global_check_openblas_version
351
352
364 subroutine init_octopus_globals(comm)
365 type(mpi_comm), intent(in) :: comm
366
367 character(len=256) :: path
368
369 call mpi_grp_init(mpi_world, comm)
370
371 call mpi_world%barrier()
372 ! Get epoch time at node startup, just after the barrier to synchronize nodes first.
374
375 ! These defaults are initialised here because the Intel 2022a compiler complains:
376 ! "This array or function or substring is invalid in constant expressions"
377 ! This is not a problem with Intel 2023a, and so can be returned to hardware.F90
378 ! once Intel 2022a support is dropped
379 default_l1 = cache_t( 32*1024, 64)
380 default_l2 = cache_t(4096*1024, 64)
381
382 ! TODO(Alex) Issue 1013. Change hardware class to a free function, and make cache_t instance global.
384
385 call conf%init()
386
387 ! initialize info for the input variables
388 path = trim(conf%share)//'/varinfo'
389 call varinfo_init(string_f_to_c(path))
390
391 block
392 use, intrinsic :: ieee_arithmetic, only: &
393 ieee_negative_inf, &
394 ieee_positive_inf, &
395 ieee_quiet_nan, &
396 ieee_signaling_nan, &
397 ieee_support_inf, &
398 ieee_support_nan, &
399 ieee_value
400 if (ieee_support_inf(m_pinf)) then
401 m_pinf = ieee_value(m_pinf, ieee_positive_inf)
402 else
403 m_pinf = huge(m_pinf)
404 end if
405 if (ieee_support_inf(m_ninf)) then
406 m_ninf = ieee_value(m_ninf, ieee_negative_inf)
407 else
408 m_ninf = -huge(m_ninf)
409 end if
410 if (ieee_support_nan(m_qnan)) then
411 m_qnan = ieee_value(m_qnan, ieee_quiet_nan)
412 else
413 m_qnan = real(0.0, kind(m_qnan))
414 end if
415 if (ieee_support_nan(m_snan)) then
416 m_snan = ieee_value(m_snan, ieee_signaling_nan)
417 else
418 m_snan = real(0.0, kind(m_snan))
419 end if
420 end block
421
422 end subroutine init_octopus_globals
423
424
426 subroutine global_end()
427
428 call varinfo_end()
429 call conf%end()
430 call mpi_mod_end()
431
432 end subroutine global_end
433
434
435 real(real64) pure function doptional_default(opt, def) result(val)
436 real(real64), optional, intent(in) :: opt
437 real(real64), intent(in) :: def
438
439 val = def
440 if (present(opt)) val = opt
441 end function doptional_default
442
443 !----------------------------------------------------------
444
445 complex(real64) pure function zoptional_default(opt, def) result(val)
446 complex(real64), optional, intent(in) :: opt
447 complex(real64), intent(in) :: def
448
449 val = def
450 if (present(opt)) val = opt
451 end function zoptional_default
452
453 !----------------------------------------------------------
454
455 integer pure function ioptional_default(opt, def) result(val)
456 integer, optional, intent(in) :: opt
457 integer, intent(in) :: def
458
459 val = def
460 if (present(opt)) val = opt
461 end function ioptional_default
462
463 !----------------------------------------------------------
464
465 integer(int64) pure function loptional_default(opt, def) result(val)
466 integer(int64), optional, intent(in) :: opt
467 integer(int64), intent(in) :: def
468
469 val = def
470 if (present(opt)) val = opt
471 end function loptional_default
472
473 !----------------------------------------------------------
474
475 logical pure function looptional_default(opt, def) result(val)
476 logical, optional, intent(in) :: opt
477 logical, intent(in) :: def
478
479 val = def
480 if (present(opt)) val = opt
481 end function looptional_default
482
483 !----------------------------------------------------------
484
485 character(len=80) pure function soptional_default(opt, def) result(val)
486 character(len=*), optional, intent(in) :: opt
487 character(len=*), intent(in) :: def
488
489 val = def
490 if (present(opt)) val = opt
491 end function soptional_default
492
493 !-----------------------------------------------------------
494
495 logical &
496#ifndef have_openmp
497 pure &
498#endif
499 function not_in_openmp()
500
501#ifdef HAVE_OPENMP
502 not_in_openmp = .not. omp_in_parallel()
503#else
505#endif
506
507 end function not_in_openmp
509 !-----------------------------------------------------------
510
511 function cat(str1, str2)
512 character(len=*), intent(in) :: str1
513 character(len=*), intent(in) :: str2
514
515 character(len=len(str1) + len(str2)) :: cat
516 cat = str1//str2
517
518 end function cat
519
520 ! -----------------------------------------------------------
521
522 integer(int64) pure function bitand48(val1, val2)
523 integer(int32), intent(in) :: val1
524 integer(int64), intent(in) :: val2
525
526 bitand48 = iand(int(val1, int64), val2)
527
528 end function bitand48
529
530 ! -----------------------------------------------------------
531
532 integer(int64) pure function bitand84(val1, val2)
533 integer(int64), intent(in) :: val1
534 integer(int32), intent(in) :: val2
535
536 bitand84 = iand(val1, int(val2, int64))
537
538 end function bitand84
539
540 ! -----------------------------------------------------------
541
542 integer(int64) pure function bitand88(val1, val2)
543 integer(int64), intent(in) :: val1
544 integer(int64), intent(in) :: val2
545
546 bitand88 = iand(val1, val2)
547
548 end function bitand88
549
550 ! -----------------------------------------------------------
551
552 integer(int32) pure function bitand44(val1, val2)
553 integer(int32), intent(in) :: val1
554 integer(int32), intent(in) :: val2
555
556 bitand44 = iand(val1, val2)
557
558 end function bitand44
559
560 ! -----------------------------------------------------------
561
562 integer(int64) pure function i4_to_i8_0(ii)
563 integer(int32), intent(in) :: ii
564
565 i4_to_i8_0 = int(ii, int64)
566 end function i4_to_i8_0
567
568 ! -----------------------------------------------------------
569
570 integer(int32) pure function i8_to_i4_0(ii)
571 integer(int64), intent(in) :: ii
572
573 i8_to_i4_0 = int(ii, int32)
574 end function i8_to_i4_0
575
576 ! -----------------------------------------------------------
577
578 pure function i4_to_i8_1(ii)
579 integer(int32), intent(in) :: ii(:)
580 integer(int64) :: i4_to_i8_1(lbound(ii, 1, kind=int64):ubound(ii, 1, kind=int64))
581
582 i4_to_i8_1 = int(ii, int64)
583 end function i4_to_i8_1
585 ! -----------------------------------------------------------
586
587 pure function i8_to_i4_1(ii)
588 integer(int64), intent(in) :: ii(:)
589 integer(int32) :: i8_to_i4_1(lbound(ii, 1, kind=int64):ubound(ii, 1, kind=int64))
590
591 i8_to_i4_1 = int(ii, int32)
592 end function i8_to_i4_1
593
594end module global_oct_m
596!! Local Variables:
597!! mode: f90
598!! coding: utf-8
599!! End:
This function is defined in messages.F90.
Definition: global.F90:281
Public types, variables and procedures.
Definition: global.F90:131
character(len= *), parameter, public em_resp_fd_dir
Definition: global.F90:255
integer(int32) pure function bitand44(val1, val2)
Definition: global.F90:626
subroutine, public global_end()
Finalise parser varinfo file, and MPI.
Definition: global.F90:500
pure integer(int32) function, dimension(lbound(ii, 1, kind=int64):ubound(ii, 1, kind=int64)) i8_to_i4_1(ii)
Definition: global.F90:661
character(len= *), parameter, public gs_dir
Definition: global.F90:251
integer(int64) pure function bitand88(val1, val2)
Definition: global.F90:616
integer(int64) pure function i4_to_i8_0(ii)
Definition: global.F90:636
character(len= *), parameter, public iteration_dir
Definition: global.F90:263
real(real64), parameter, public p_g
Definition: global.F90:217
real(real64), parameter, public p_proton_charge
Definition: global.F90:218
integer, public s_epoch_sec
global epoch time (time at startup)
Definition: global.F90:235
integer pure function ioptional_default(opt, def)
Definition: global.F90:529
integer, public no_sub_stack
Definition: global.F90:240
real(real64), parameter, public p_ry
Definition: global.F90:212
real(real64), parameter, public p_ev
Definition: global.F90:213
character(len= *), parameter, public casida_dir
Definition: global.F90:259
real(real64), parameter, public p_a_b
some physical constants
Definition: global.F90:210
integer, parameter, public rdmft
Definition: global.F90:223
integer(int64), public global_sizeof
Definition: global.F90:246
character(len= *), parameter, public pcm_dir
Definition: global.F90:261
integer(int64) pure function bitand84(val1, val2)
Definition: global.F90:606
real(real64), parameter, public m_degenerary_threshold
Threshold in energy for degeneracy for states.
Definition: global.F90:204
real(real64), parameter, public p_mu
Definition: global.F90:220
integer, parameter, public hartree_fock
Definition: global.F90:223
character(len= *), parameter, public vib_modes_dir
Definition: global.F90:257
character(len= *), parameter, public partition_dir
Definition: global.F90:262
integer(int64) pure function loptional_default(opt, def)
Definition: global.F90:539
character(len= *), parameter, public kdotp_dir
Definition: global.F90:256
character(len= *), parameter, public dm_dir
Definition: global.F90:264
real(real64), parameter, public p_ep
Definition: global.F90:219
integer, parameter, public independent_particles
Theory level.
Definition: global.F90:223
real(real64), parameter, public p_ang
Definition: global.F90:211
character(len=len(str1)+len(str2)) function cat(str1, str2)
Definition: global.F90:585
type(mpi_comm), parameter, public serial_dummy_comm
Alias MPI_COMM_UNDEFINED for the specific use case of initialising Octopus utilities with no MPI supp...
Definition: global.F90:268
subroutine, public init_octopus_globals(comm)
Initialise Octopus-specific global constants and files. This routine performs no initialisation calls...
Definition: global.F90:438
real(real64), dimension(50), public time_stack
Definition: global.F90:239
logical pure function, public not_in_openmp()
Definition: global.F90:573
real(real64) pure function doptional_default(opt, def)
Definition: global.F90:509
logical pure function looptional_default(opt, def)
Definition: global.F90:549
integer, parameter, public generalized_kohn_sham_dft
Definition: global.F90:223
subroutine conf_end(this)
Finaliser for conf_t.
Definition: global.F90:357
real(real64), parameter, public lmm_r_single_atom
Default local magnetic moments sphere radius for an isolated system.
Definition: global.F90:207
integer, parameter, public kohn_sham_dft
Definition: global.F90:223
integer(int32) pure function i8_to_i4_0(ii)
Definition: global.F90:644
character(len=80), dimension(50), public sub_stack
The stack.
Definition: global.F90:238
integer, public s_epoch_usec
Definition: global.F90:235
character(len= *), parameter, public em_resp_dir
Definition: global.F90:254
character(len=100), public global_alloc_errmsg
Definition: global.F90:247
type(conf_t), public conf
Global instance of Octopus configuration.
Definition: global.F90:163
logical, public in_profiling_mode
Same for profiling mode.
Definition: global.F90:243
integer, public global_alloc_err
Definition: global.F90:245
subroutine global_check_openblas_version()
Check OpenBLAS version and terminate if Octopus is linked to version 0.3.32.
Definition: global.F90:407
character(len=80) pure function soptional_default(opt, def)
Definition: global.F90:559
character(len= *), parameter, public td_dir
Definition: global.F90:252
pure integer(int64) function, dimension(lbound(ii, 1, kind=int64):ubound(ii, 1, kind=int64)) i4_to_i8_1(ii)
Definition: global.F90:652
character(len= *), parameter, public static_dir
Definition: global.F90:253
real(real64), parameter, public p_kb
Boltzmann constant in Ha/K.
Definition: global.F90:214
subroutine, public global_init(communicator)
Initialise Octopus.
Definition: global.F90:381
complex(real64) pure function zoptional_default(opt, def)
Definition: global.F90:519
subroutine conf_init(this)
Initialiser for conf_t.
Definition: global.F90:311
integer, parameter, public hartree
Definition: global.F90:223
character(len= *), parameter, public vdw_dir
Definition: global.F90:258
character(len= *), parameter, public oct_dir
Definition: global.F90:260
integer(int64) pure function bitand48(val1, val2)
Definition: global.F90:596
type(cache_t) function, public cache_detect(level, default)
Data cache of the given level of this CPU, or the default where it cannot be detected.
Definition: hardware.F90:99
type(hardware_t), public cpu_hardware
Global instance of CPU hardware specification.
Definition: hardware.F90:77
type(cache_t), public default_l2
Definition: hardware.F90:81
type(cache_t), public default_l1
Defaults for (l1, l2) cache, used where the cache cannot be detected.
Definition: hardware.F90:80
System information (time, memory, sysname)
Definition: loct.F90:94
subroutine, public loct_getenv(var, val)
Definition: loct.F90:341
subroutine, public loct_dirname(path, dir)
Definition: loct.F90:419
logical function, public loct_dir_exists(dirname)
Definition: loct.F90:326
character(kind=c_char, len=1) function, dimension(len_trim(f_string)+1), private string_f_to_c(f_string)
convert a Fortran string to a C string
Definition: loct.F90:217
subroutine, public loct_executable_path(fpath)
Definition: loct.F90:402
subroutine blacs_init()
Initialize BLACS to enable use of SCALAPACK.
Definition: mpi.F90:361
subroutine check_threading_support(comm)
Check that the threading support of the MPI library is consistent with the requested support from Oct...
Definition: mpi.F90:351
type(mpi_comm), parameter, public mpi_comm_undefined
used to indicate a communicator has not been initialized
Definition: mpi.F90:115
type(mpi_grp_t), public mpi_world
Definition: mpi.F90:317
subroutine mpi_grp_init(grp, comm)
Initialize MPI group instance.
Definition: mpi.F90:386
subroutine mpi_init_comm(comm)
Wrapper for MPI_COMM_WORLD initialisation.
Definition: mpi.F90:340
static double f(double w, void *p)
Build configuration type.
Definition: global.F90:142
int true(void)
void varinfo_end()
Definition: varinfo_low.c:6726