libResourcesManager_la_CPPFLAGS =\
-I$(srcdir)/../Basics \
-I$(srcdir)/../SALOMELocalTrace \
+ -I$(srcdir)/../Utils \
@LIBXML_INCLUDES@
libResourcesManager_la_LDFLAGS = -no-undefined -version-info=0:0:0
libResourcesManager_la_LIBADD =\
+ ../Utils/libOpUtil.la \
@LIBXML_LIBS@
//$Header$
#include "SALOME_ResourcesCatalog_Handler.hxx"
+#include "OpUtil.hxx"
#include <iostream>
#include <map>
#include "utilities.h"
_resource.HostName = nodeName ;
_resources_list[nodeName] = _resource;
}
- }
- else
- _resources_list[_resource.HostName] = _resource;
- }
- else
- _resources_batch_list[_resource.HostName] = _resource;
- }
+ }
+ else
+ {
+ _resources_list[_resource.HostName] = _resource;
+ if(_resource.HostName == "localhost")
+ _resources_list[GetHostname()] = _resource;
+ }
+ }
+ else
+ _resources_batch_list[_resource.HostName] = _resource;
+ }
aCurNode = aCurNode->next;
}
p_ptr->cpu_clock = resource.DataForSort._CPUFreqMHz;
p_ptr->nb_proc_per_node = resource.DataForSort._nbOfProcPerNode;
p_ptr->nb_node = resource.DataForSort._nbOfNodes;
+
if( resource.mpi == indif )
p_ptr->mpiImpl = "indif";
else if( resource.mpi == lam )
p_ptr->mpiImpl = "openmpi";
else if( resource.mpi == slurm )
p_ptr->mpiImpl = "slurm";
+
+ p_ptr->isMPI=false;
+ if(resource.mpi != indif )
+ p_ptr->isMPI=true;
+
if( resource.Batch == pbs )
p_ptr->batch = "pbs";
else if( resource.Batch == lsf )
p_ptr->batch = "lsf";
+ p_ptr->nb_component_nodes=1;
+
return p_ptr;
}