Coder Social home page Coder Social logo

scripts_cd-ct's People

Contributors

carlosrenatosouza2 avatar deniseiras avatar joaomas avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

scripts_cd-ct's Issues

Bug - tag_or_branch_name in 1.install

@deniseiras @carlosrenatosouza2 @egkhamis

When used "release/0.5.0" like second parameter in the first script, example:

$ ./1.install_monan.bash https://github.com/monanadmin/MONAN-Model.git release/0.5.0

The script created "sources/MONAN_release" without number of release.

Testing possible solution with 'sed' in the 1.install_monan.bash script.

Before:

MONANDIR=${SOURCES}/MONAN-Model_${tag_or_branch_name_MONAN}
CONVERT_MPAS_DIR=${SOURCES}/convert_mpas_${tag_or_branch_name_CONVERT_MPAS}

After:

MONANDIR=${SOURCES}/MONAN-Model_$(echo ${tag_or_branch_name_MONAN} | sed -e "s/\//_/g")
CONVERT_MPAS_DIR=${SOURCES}/convert_mpas_$(echo ${tag_or_branch_name_CONVERT_MPAS} | sed -e "s/\//_/g")

Erro main

@deniseiras e @carlosrenatosouza2 a 'main' do CD-CT esta com bug, estou usando a 'develop'.

$ ./1.install_monan.bash https://github.com/joaomas/MONAN-Model-JMAS.git

==> Moduling environment for MONAN model...

Currently Loaded Modules:

  1. autotools 4) ohpc 7) mpich-4.0.2-gcc-9.4.0-gpof2pv 10) cdo-2.0.4-gcc-9.4.0-bjulvnd
  2. prun/2.2 5) netcdf/4.7.4 8) hwloc/2.5.0 11) opengrads-2.2.1
  3. gnu9/9.4.0 6) netcdf-fortran/4.5.3 9) phdf5/1.10.8 12) metis/5.1.0

==> Cloning your fork repository...

fatal: could not create work tree dir '/mnt/beegfs/carlos.souza/repo_Monan/scripts_CD-CT/sources/MONAN-Model_v0.1.0': Permission denied
==> An error occurred while cloning your fork. Possible causes: wrong URL, user or password.

Improvement script make_static.sh

@carlosrenatosouza2

[1] Command tar begin when wget still is executng.... and other issues.. contact to @egkhamis

[2] The file x1.${RES}.graph.info ${cores} is missing in tar file.. contact to @egkhamis

if [ ! -s ${DATAIN}/fixed/x1.${RES}.graph.info.part.${cores} ]
then
   if [ ! -s ${DATAIN}/fixed/x1.${RES}.graph.info ]
   then
      cd ${DATAIN}/fixed
      echo -e "${GREEN}==>${NC} downloading meshes tgz files ... \n"
      wget https://www2.mmm.ucar.edu/projects/mpas/atmosphere_meshes/x1.${RES}.tar.gz
      wget https://www2.mmm.ucar.edu/projects/mpas/atmosphere_meshes/x1.${RES}_static.tar.gz
      tar -xzvf x1.${RES}.tar.gz
      tar -xzvf x1.${RES}_static.tar.gz
   fi
   echo -e "${GREEN}==>${NC} Creating x1.${RES}.graph.info.part.${cores} ... \n"
   cd ${DATAIN}/fixed
   gpmetis -minconn -contig -niter=200 x1.${RES}.graph.info ${cores}
   rm -fr x1.${RES}.tar.gz x1.${RES}_static.tar.gz
fi

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.