zoukankan      html  css  js  c++  java
  • PVPC代码的运行脚本

    我们写的 PVPC 的代码在 gitee 上可以下载:https://gitee.com/luyi07/pvpc.git
    这里摘录一个脚本,用来自动做变分+投影,在最新的版本里会放在 example/run.sh 中,运行方法:
    bash run.sh

    #!/bin/bash
    
    nucleus=Cr48
    pN=2
    nN=2
    jsp="example/pf/pf.jsp"
    xpn="example/pf/pf+pairing.xpn"
    pjpair="best-proton.pair01"
    njpair="best-neutron.pair01"
    
    :<<!
    echo "======================================================================="
    echo "                  variation starts "
    echo "-----------------------------------------------------------------------"
    ./pvpc.x << input
    v               # mode: optimize
    $nucleus            # nucleus
    $pN               # number of proton pairs
    $nN               # number of neutron pairs
    $jsp       # file for j-scheme single particle orbits
    xpn             # format of interactions: J-scheme P+Q interactions
    $xpn       # file for j-scheme P+Q interactions
    y               # scaling
    1               # number of optimized pair condensates ordered, though they may turn out to be linearly dependent.
    y               # start from random pairs
    input
    echo "-----------------------------------------------------------------------"
    echo "                  variation ends "
    echo "======================================================================="
    !
    
    echo "======================================================================="
    echo "                  LAP starts "
    echo "-----------------------------------------------------------------------"
    ./pvpc.x << Input
    LAP                     // mode
    $nucleus                    // nucleus
    $pN                       // # of proton pairs
    $nN                       // # of neutron pairs
    $jsp                       // file for j-scheme single particle space
    xpn                     // format of interactions
    $xpn                       // file for interactions
    y                       // scale or not
    1                       // number of pair condensates
    $pjpair   $njpair
    16                      // Jmax to be projected, not doubled
    Input
    echo "-----------------------------------------------------------------------"
    echo "                  LAP ends "
    echo "======================================================================="
    
  • 相关阅读:
    微信公众平台接口测试账号申请
    Windows平台下tomcat+java的web程序持续占cpu问题调试
    mysql存储过程基础
    Mysql权限控制
    MySQL开启federated引擎实现数据库表映射
    JAVA中Set集合--HashSet的使用
    在js中嵌套java代码
    MySql计算两个日期的时间差函数
    关于easyui combobox下拉框实现多选框的实现
    利用excel办公软件快速拼凑sql语句
  • 原文地址:https://www.cnblogs.com/luyi07/p/14958726.html
Copyright © 2011-2022 走看看