Esempio n. 1
0
    def get_run_id(self):
        """
        Get the run id, id_prefix, and id_suffix options in the run command
        """

        args = separate_args(self.lines[self.run_cmd_line_id])

        run_id = get_command_single_value(args, ('--id', '--id='))
        run_id_prefix = get_command_single_value(
            args, ('--id-prefix', '--id-prefix='))
        run_id_suffix = get_command_single_value(
            args, ('--id-suffix', '--id-suffix='))

        return run_id, run_id_prefix, run_id_suffix
Esempio n. 2
0
    def get_nprocs(self):
        """
        Get the nprocs option in the run command
        """

        args = separate_args(self.lines[self.run_cmd_line_id])

        return get_command_single_value(args, ('--nprocs', '--nprocs=', '-n'))
Esempio n. 3
0
    def get_parameters(self):
        """
        Get the parameters option in the run command
        """

        args = separate_args(self.lines[self.run_cmd_line_id])

        return get_command_single_value(args, ('--param', '--param=', '-p'))
Esempio n. 4
0
    def get_coupling(self):
        """
        Get the coupling option in the run command
        """

        args = separate_args(self.lines[self.run_cmd_line_id])

        return get_command_single_value(args, ('--coupling', '--coupling='))
Esempio n. 5
0
    def get_nthreads(self):
        """
        Get the nthreads option in the run command
        """

        args = separate_args(self.lines[self.run_cmd_line_id])

        return get_command_single_value(
            args, ('--threads-per-task', '--threads-per-task=', '-nt'))
Esempio n. 6
0
    def get_compute_build(self):
        """
        Get the compute-build option in the run command
        """

        args = separate_args(self.lines[self.run_cmd_line_id])

        return get_command_single_value(
            args, ('--compute-build', '--compute-build='))