QDYN Documentation

Getting started

Requirements

Downloading QDYN

QDYN is hosted on GitHub. To download for the first time the stable version of QDYN, execute the following git command:

git clone https://github.com/ydluo/qdyn qdyn-read-only

This creates a directory qdyn-read-only which contains the whole QDYN package. You can create a directory with a different name. The code contained by the master branch (default) is tested and stable, but other development branches may be available. Consult the GitHub repository for the availability of development code.

Installing QDYN

  1. Navigate to the src directory
  2. Modify the section “User Settings” of the Makefile following the instructions and examples therein:
    • In section 1, set the variable EXEC_PATH = [target path to your executable file]. If you set the default value (recommended) the executable file qdyn is placed in the src directory. If you change this variable, you must set the EXEC_PATH input variable accordingly when calling qdyn from the wrappers (qdyn.m or pyqdyn.py).
    • In section 2, adjust your Fortran compiler settings: set the variables F90 = [your compiler], OPT = [your compiler optimization flags] and PREPROC = [your compiler preprocessing flags]. Settings for several commonly used compilers are provided. Note that the specific optimization flags need to be set to enable parallelization through OpenMP.
  3. Set the parameters in the section “User Settings” of constants.f90 following the instructions therein
  4. Run make

Keeping QDYN up-to-date

After the first-time checkout you can update the QDYN package by executing the following command in your QDYN directory:

git pull origin master

Git automatically detects conflicts and attempts to resolve them. In case of unresolvable conflicts you have to fix them manually following the instructions in the GitHub help pages.

Additional notes for Windows 10 users

As of 2017, Windows 10 officially supports a bash command line environment by installing a Linux subsystem (as of writing, Ubuntu and OpenSUSE are currently offered in the Windows Store). Within a subsystem, Unix-compiled executables can be run natively, and the user has access to the Canonical software repository (apt-get install [package]). Running QDYN in a Linux subsystem is done as follows:

  1. Install your preferred Linux subsystem, see this instruction page

  2. Install make, gfortran, and Open MPI as:
     sudo apt-get install make gfortran libopenmpi-dev
    
  3. Download QDYN as instructed above. Note that Windows does not have access to the Linux file system, so in order to exchange files between the subsystem and Windows, it is recommended to download QDYN to (and run simulations from) a local Windows directory (e.g. C:\Users\bob\qdyn). The Windows file system can be accessed in the Linux subsystem as: cd /mnt/c/Users/bob/qdyn

  4. Navigate to the QDYN src directory and compile QDYN as described above

  5. In the case that the required Python or command line MATLAB/Octave packages are installed on the Linux subsystem, QDYN can be called directly from a wrapper. If none of these software packages are available, generate a qdyn.in file in Windows (through a wrapper), navigate within the subsystem to the location of qdyn.in (e.g. cd /mnt/c/Users/bob/test_simulation) and run: /mnt/c/Users/bob/qdyn/src/qdyn

  6. QDYN should now be running within the Linux subsystem, creating output files in C:\Users\bob\test_simulation that can be accessed by Windows for further processing.

  7. The Python wrapper (pyqdyn.py) also has built-in functionalities to call the subsystem directly from a Windows 10 environment. In order to set-up and run QDYN simulations from the Python wrapper, set qdyn.W10_bash = True. When doing so, the wrapper will automatically switch between the Windows and Linux environments.

装修网业之峰装修设计新中式简装150平方办公室装修肇庆 装潢电影院装修报价家装节建行公装公司装潢儿童图书馆装修最贵的简装白酒厕所墙不贴瓷砖怎么装修装饰网装修成都装修精装精装房装修风格都一样吗装修装修全包116个平方简装要多少钱专业公装公司办公楼过道装修100平房子简装需要多少钱20平米美发店简装loft40平米装修范思哲香水简装装修分享小知识精装多少一平简装装修装饰多少钱房子装修简装要多少钱东营电梯装潢珠海简装e公装窗台边怎么装饰成都平价装修公司香港通过《维护国家安全条例》两大学生合买彩票中奖一人不认账让美丽中国“从细节出发”19岁小伙救下5人后溺亡 多方发声汪小菲曝离婚始末卫健委通报少年有偿捐血浆16次猝死单亲妈妈陷入热恋 14岁儿子报警雅江山火三名扑火人员牺牲系谣言手机成瘾是影响睡眠质量重要因素男子被猫抓伤后确诊“猫抓病”中国拥有亿元资产的家庭达13.3万户高校汽车撞人致3死16伤 司机系学生315晚会后胖东来又人满为患了男孩8年未见母亲被告知被遗忘张家界的山上“长”满了韩国人?倪萍分享减重40斤方法许家印被限制高消费网友洛杉矶偶遇贾玲何赛飞追着代拍打小米汽车超级工厂正式揭幕男子被流浪猫绊倒 投喂者赔24万沉迷短剧的人就像掉进了杀猪盘特朗普无法缴纳4.54亿美元罚金周杰伦一审败诉网易杨倩无缘巴黎奥运专访95后高颜值猪保姆德国打算提及普京时仅用姓名西双版纳热带植物园回应蜉蝣大爆发七年后宇文玥被薅头发捞上岸房客欠租失踪 房东直发愁“重生之我在北大当嫡校长”校方回应护栏损坏小学生课间坠楼当地回应沈阳致3死车祸车主疑毒驾事业单位女子向同事水杯投不明物质路边卖淀粉肠阿姨主动出示声明书黑马情侣提车了奥巴马现身唐宁街 黑色着装引猜测老人退休金被冒领16年 金额超20万张立群任西安交通大学校长王树国卸任西安交大校长 师生送别西藏招商引资投资者子女可当地高考胖东来员工每周单休无小长假兔狲“狲大娘”因病死亡外国人感慨凌晨的中国很安全恒大被罚41.75亿到底怎么缴考生莫言也上北大硕士复试名单了专家建议不必谈骨泥色变“开封王婆”爆火:促成四五十对测试车高速逃费 小米:已补缴天水麻辣烫把捣辣椒大爷累坏了

装修网 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化