#! /bin/bash

function _gromacs_bin_dir() {
  local arch
  arch='SSE2'
  case $( cat /proc/cpuinfo | grep -m1 '^flags' ) in
    *\ avx2\ * | *avx2_0*)
      test -d "/opt/conda/conda-bld/gromacs_1620730177307/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/bin.AVX2_256" &&         arch='AVX2_256'
    ;;
    *\ avx\ * | *avx1_0*)
      test -d "/opt/conda/conda-bld/gromacs_1620730177307/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/bin.AVX_256" &&         arch='AVX_256'
  esac
  printf '%s' "/opt/conda/conda-bld/gromacs_1620730177307/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/bin.${arch}"
}

. "$( _gromacs_bin_dir )/GMXRC" "${@}"
