Coder Social home page Coder Social logo

ngs333 / gfdl_misc Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.53 MB

A miscellaneous collection of custom code related to GFDL work by mzuniga.

CMake 0.32% C++ 52.92% Python 1.18% Shell 2.08% Fortran 3.31% C 1.63% Makefile 0.11% Jupyter Notebook 38.45%

gfdl_misc's Introduction

This is a miscellaneous collection of custom code related to GFDL work by mzuniga which did not quite fit under repos NCTools, FMS, etc.

Build and install general info: I) This version was tested with Cmake

II) External Libs required:

First edit the top level CMakeLists.txt. These need to be changes to have the NetCDF C++ libs:

include_directories(/home/mzuniga/NetCdCPP/include) link_directories(/home/mzuniga/NetCdCPP/lib)

Libray sources are here: https://github.com/Unidata/netcdf-cxx4

III) Other sources Some apps (e.g. test_send_data.x) use source files that are generated from template. Currently program gen_from_generic.sh is run manually and the generated files are manually copied to the proper src directory!!

IV) Compiling Besides the step above for file generation. Set the FC and CC env varialbles. E.g. in bash with the Intel toolchain:

export FC=mpiifort export CC=mpiicc

or similarly for GCC:

export FC=mpifort export CC=mpicc

you can then build with $ cd gfdl_misc/src $ mkdir build; cd build $ cmake -G Ninja .. $ ninja -v

or, for example, using the default generator with verbose compilation in debug mode:

$ cd gfdl_misc/src $ mkdir build; cd build $ cmake .. -DCMAKE_BUILD_TYPE=Debug $ cmake --build . -v

Note the executables are placed in directory "bin" at the same level as the main src direcotry.

VSCode compile: These extensions are recommended (circa 2021) a) C/C++ for Visual Studio Code (by Microsoft) b) C/C++ Extension Pack (Microsoft) c) C/C++ Themes (By Microsoft) d) Modern Fortran ( from frotran-lang) e) Fortran IntelliSense (Chris Hansen) f) Fortran Breakpoint Support (ekibun) g) EditorConfig for VS Code (EditorConfig)

gfdl_misc's People

Contributors

ngs333 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.