Beispiel #1
0
 def setupHelp(self, help):
     import nargs
     config.package.GNUPackage.setupHelp(self, help)
     help.addArgument(
         'MAKE', '-with-make-np=<np>',
         nargs.ArgInt(
             None,
             None,
             min=1,
             help='Default number of threads to use for parallel builds'))
     help.addArgument(
         'MAKE', '-with-make-test-np=<np>',
         nargs.ArgInt(
             None,
             None,
             min=1,
             help='Default number of threads to use for parallel tests'))
     help.addArgument(
         'MAKE', '-with-make-load=<load>',
         nargs.ArgReal(None,
                       None,
                       min=1.0,
                       help='max load to use for parallel builds'))
     help.addArgument(
         'MAKE', '-download-make-cc=<prog>',
         nargs.Arg(None, None, 'C compiler for GNU make configure'))
     help.addArgument('MAKE', '-with-make-exec=<executable>',
                      nargs.Arg(None, None, 'Make executable to look for'))
     return
Beispiel #2
0
    def setupHelp(self, help):
        '''This method should be overidden to provide help for arguments'''
        import nargs

        script.Script.setupHelp(self, help)
        help.addArgument(
            'FMM', '-debug',
            nargs.ArgBool(None, False, 'Debug FMM', isTemporary=1))
        help.addArgument(
            'FMM', '-lower',
            nargs.Arg(None, [-0.5, -0.5],
                      'Lower-left corner of the tree',
                      isTemporary=1))
        help.addArgument(
            'FMM', '-upper',
            nargs.Arg(None, [0.5, 0.5],
                      'Upper-right corner of the tree',
                      isTemporary=1))
        help.addArgument(
            'FMM', '-maxLevel',
            nargs.ArgInt(None,
                         2,
                         'Last tree level (numLevels-1)',
                         0,
                         isTemporary=1))
        help.addArgument(
            'FMM', '-terms',
            nargs.ArgInt(None,
                         5,
                         'Number of terms in multipole expansion',
                         1,
                         isTemporary=1))
        help.addArgument(
            'FMM', '-sigma',
            nargs.ArgReal(None, 0.02, 'Particle radius', 0.0, isTemporary=1))
        help.addArgument(
            'FMM', '-k',
            nargs.ArgInt(None, 2, 'Blob parameter???', 0, isTemporary=1))
        help.addArgument(
            'FMM', '-overlap',
            nargs.ArgReal(None, 0.8, 'Overlap ratio', 0.0, isTemporary=1))
        help.addArgument(
            'FMM', '-gamma',
            nargs.ArgReal(None,
                          1.0,
                          'Gamma parameter of the Lamb-Oseen model',
                          0.0,
                          isTemporary=1))
        help.addArgument(
            'FMM', '-nu',
            nargs.ArgReal(None,
                          0.0005,
                          'Viscosity parameter of the Lamb-Oseen model',
                          0.0,
                          isTemporary=1))
        help.addArgument(
            'FMM', '-t',
            nargs.ArgReal(None, 4.0, 'Time at first step', isTemporary=1))
        help.addArgument(
            'FMM', '-true_solution_type',
            nargs.Arg(None,
                      'analytic',
                      'True solution type: direct, analytic',
                      isTemporary=1))
        help.addArgument(
            'FMM', '-basename',
            nargs.Arg(None, '', 'Base filename for output', isTemporary=1))
        return help