TABLE OF CONTENTS


::pwtk::pseudo_auto_download

SYNOPSIS

proc ::pwtk::pseudo_auto_download {args} {

USAGE

   # query mode
   pseudo_auto_download

   # activate auto-downloading of pseudopotentials
   pseudo_auto_download on

   # deactivate auto-downloading of pseudopotentials
   pseudo_auto_download off

PURPOSE

Query or set (activate, deactivate) the auto-downloading of pseudopotentials from the internet.

RETURN VALUE

SOURCE

    variable state

    if { $args ne {} } {
        if { ! [::pwtk::type::number fboolean -strict $args] } {
            ::pwtk::error "expected boolean but got \"$args\"" 1
        }
        if { [is_true $args] } {
            set state(pseudo_auto_download) 1
        } else {
            set state(pseudo_auto_download) 0
        }
    }

    return $state(pseudo_auto_download)
}