environment : refactoreded set_build_environment_variables

This commit is contained in:
alalazo
2016-03-15 10:49:33 +01:00
parent f20247ae55
commit bcea1df01c
3 changed files with 31 additions and 26 deletions

View File

@@ -123,7 +123,7 @@ def set_network_type(self, spec, configure_args):
count += 1
if count > 1:
raise RuntimeError('network variants are mutually exclusive (only one can be selected at a time)')
network_options = []
# From here on I can suppose that only one variant has been selected
if self.enabled(Mvapich2.PSM) in spec:
network_options = ["--with-device=ch3:psm"]