def build_exe(self, loc_compiler=None): if loc_compiler == None: loc_compiler = self._compiler drv_dir = os.path.join(self._marbl_dir, 'tests', 'driver_src') if self._machine != 'local': machs.load_module(self._machine, loc_compiler, self._module_names[loc_compiler]) makecmd = 'make %s' % loc_compiler if self._mpitasks > 0: makecmd += ' USEMPI=TRUE' sh_command('cd %s; %s' % (drv_dir, makecmd))
def build_lib(self, loc_compiler=None): if loc_compiler == None: loc_compiler = self._compiler src_dir = os.path.join(self._marbl_dir, 'src') if self._machine != 'local': machs.load_module(self._machine, loc_compiler, self._module_names[loc_compiler]) makecmd = 'make %s' % loc_compiler if self._mpitasks > 0: makecmd += ' USEMPI=TRUE' status_code = sh_command('cd %s; %s' % (src_dir, makecmd)) if status_code != 0: logging.error("ERROR building MARBL library") sys.exit(1)
def build_exe(self, loc_compiler=None): if loc_compiler == None: loc_compiler = self._compiler drv_dir = os.path.join(self._marbl_dir, 'tests', 'driver_src') if self._machine != 'local': machs.load_module(self._machine, loc_compiler, self._module_names[loc_compiler]) makecmd = 'make %s' % loc_compiler if self._withnc: makecmd += ' USE_NETCDF=TRUE' if self._mpitasks > 0: makecmd += ' USEMPI=TRUE' status_code = sh_command('cd %s; %s' % (drv_dir, makecmd)) if status_code != 0: logging.error("ERROR building MARBL stand-alone driver") sys.exit(1)