Révision 48 database/import_vasp_calc
import_vasp_calc (revision 48) | ||
---|---|---|
219 | 219 |
parser.add_argument("-u", help="The user who did the calculations") |
220 | 220 |
parser.add_argument("-j", help="Project name") |
221 | 221 |
args = parser.parse_args() |
222 |
nproc = multiprocessing.cpu_count() |
|
222 | 223 |
if args.path is None: |
223 | 224 |
path = '.' |
224 | 225 |
else: |
... | ... | |
240 | 241 |
else: |
241 | 242 |
db = args.d |
242 | 243 |
if args.n is None: |
243 |
nproc = 8
|
|
244 |
nproc = nproc / 2
|
|
244 | 245 |
else: |
245 | 246 |
nproc = int(args.n) |
246 | 247 |
if args.u is None: |
Formats disponibles : Unified diff