Sha256: 199b59fa8978bbfc4f706e930771b3d33de1212f6ad42553af429e314f3f1244

Contents?: true

Size: 971 Bytes

Versions: 1

Compression:

Stored size: 971 Bytes

Contents

#! /usr/bin/env ruby
# coding: utf-8

require "optparse"
require "rubygems"
require "vasputils"

## option analysis
OPTIONS = {}
op = OptionParser.new
op.on("--ka=list"   , "List of k_a mesh."             ){|v| OPTIONS[:ka]    = v}
op.on("--kb=list"   , "List of k_b mesh."             ){|v| OPTIONS[:kb]    = v}
op.on("--kc=list"   , "List of k_c mesh."             ){|v| OPTIONS[:kc]    = v}
op.on("--kab=list"  , "List of k_a and k_b mesh."     ){|v| OPTIONS[:kab]   = v}
op.on("--kbc=list"  , "List of k_b and k_c mesh."     ){|v| OPTIONS[:kbc]   = v}
op.on("--kca=list"  , "List of k_c and k_a mesh."     ){|v| OPTIONS[:kca]   = v}
op.on("--kabc=list" , "List of k_a, k_b and k_c mesh."){|v| OPTIONS[:kabc]  = v}
op.on("--encut=list", "List of ENCUT."                ){|v| OPTIONS[:encut] = v}
op.parse!(ARGV)

unless ARGV.size == 1
    puts "Only one file is allowed."
    exit
end

cv = VaspUtils::ConditionVarier.new(ARGV[0], OPTIONS)

cv.generate_condition_dirs

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vasputils-0.0.12 bin/varycondition