Andrewyg / DSMACC-patched

Patched version of barronh/DSMACC

Home Page:https://github.com/barronh/DSMACC/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For the original README.md from barronh/DSMACC, please check README.orig.md.

Also, btw, the newest README is actually located in pysrc/ (portal).


How to Run

  • Run ./install.sh
    • All arguments are passed to (all) make commands (except make install

The reason it's recommended to install through the script is because within pysrc/, you MUST run make source before sudo make install (which isn't documented in original author's README). If you directly run sudo make install, it'll compile fortran codes as admin, which will cause some permission issues.

Preping Env

  • sudo apt-get install gcc git wget python3 python3-pip bison flex gfortran
  • pip install numpy matplotlib pandas scipy
  • sudo pip install numpy (for setuptools)
  • if [ ! -f "/usr/bin/python" ] && [ -f "/usr/bin/python3" ]; then sudo ln -s /usr/bin/python3 /usr/bin/python; fi (This is considered an overall better fix, as throughout theproject Makefiles uses python for python3. For the reason not changing Makefiles is...cause some other distro already deprecated python2 and uses python solely for python3)

Things We've Changed

  1. Patch rtrans.f, where originally when compiled will throw out following error
gfortran -cpp -g -O2 -fno-automatic -fcheck=bounds -fimplicit-none -c rtrans.f
rtrans.f:1342:55:

 1342 |             CALL LEPOLY( NCOS, MAZIM, MXCMU, NSTR - 1, ANGCOS, YLM0 )
      |                                                       1
Error: Rank mismatch in argument ‘mu’ at (1) (rank-1 and scalar)
  1. Compile dsmacc_Rates.f90 and dsmacc_Util.f90 in src/ without the flag -fno-automatic
  2. Regenerate Makefiles (with proper flags)
  3. Remove old and create new install.sh to help you build all dependencies in correct order.

TODO

  • Extract time elapse/interval into parameters within models in pysrc/
  • Check time and don't re-run if *conc.dat is up-to-date?

Directory Layout

(Unofficial)

  • acp/
  • cri/
  • data/
  • geoschem/
  • ISOROPIA/
  • kpp/: a local kpp (supposedly version 2.2, though document within it is for 2.1)
  • pysrc/: a python plotting wrapper
  • src/
  • test/
  • tuv_new/
  • UCI_fastJX72e/
  • working/

About

Patched version of barronh/DSMACC

https://github.com/barronh/DSMACC/wiki

License:GNU General Public License v3.0


Languages

Language:Fortran 84.8%Language:C 10.0%Language:Python 1.1%Language:Shell 0.8%Language:PLSQL 0.7%Language:C++ 0.6%Language:Perl 0.3%Language:NASL 0.3%Language:Makefile 0.2%Language:Yacc 0.2%Language:Lex 0.2%Language:MATLAB 0.2%Language:Roff 0.1%Language:Assembly 0.1%Language:Emacs Lisp 0.1%Language:Pascal 0.1%Language:Forth 0.0%Language:M4 0.0%Language:SourcePawn 0.0%Language:Objective-J 0.0%