[cig-commits] commit: Changed type for MPI rank and nProcs from 'unsigned' to int as this is causing compile warnings.

Mercurial hg at geodynamics.org
Mon Feb 1 15:33:14 PST 2010


changeset:   748:757ea8463cae
branch:      pcu_rejig
user:        JericoRevote
date:        Mon Dec 21 15:25:23 2009 +1100
files:       Base/Automation/tests/HierarchyTableSuite.c Base/Container/tests/MPIRoutinesSuite.c Base/Context/tests/DictionaryCheckSuite.c Base/Extensibility/tests/EntryPointSuite.c Base/Foundation/tests/MemMonitorSuite.c Base/Foundation/tests/MemoryReportSuite.c Base/IO/tests/JournalSuite.h Base/IO/tests/PathUtilsSuite.c pcu/src/checks.c
description:
Changed type for MPI rank and nProcs from 'unsigned' to int as this is causing compile warnings.


diff -r b458ce293439 -r 757ea8463cae Base/Automation/tests/HierarchyTableSuite.c
--- a/Base/Automation/tests/HierarchyTableSuite.c	Mon Dec 21 12:39:45 2009 +1100
+++ b/Base/Automation/tests/HierarchyTableSuite.c	Mon Dec 21 15:25:23 2009 +1100
@@ -42,7 +42,7 @@ typedef struct {
 typedef struct {
    HierarchyTable*   hTable;
    HierarchyTable*   savedHierarchyTable;
-   unsigned int      rank;
+   int					rank;
 } HierarchyTableSuiteData;
 
 
diff -r b458ce293439 -r 757ea8463cae Base/Container/tests/MPIRoutinesSuite.c
--- a/Base/Container/tests/MPIRoutinesSuite.c	Mon Dec 21 12:39:45 2009 +1100
+++ b/Base/Container/tests/MPIRoutinesSuite.c	Mon Dec 21 15:25:23 2009 +1100
@@ -39,8 +39,8 @@
 #include "MPIRoutinesSuite.h"
 
 typedef struct {
-   unsigned rank;
-   unsigned nProcs;
+   int rank;
+   int nProcs;
 } MPIRoutinesSuiteData;
 
 void MPIRoutinesSuite_Setup( MPIRoutinesSuiteData* data ) {
diff -r b458ce293439 -r 757ea8463cae Base/Context/tests/DictionaryCheckSuite.c
--- a/Base/Context/tests/DictionaryCheckSuite.c	Mon Dec 21 12:39:45 2009 +1100
+++ b/Base/Context/tests/DictionaryCheckSuite.c	Mon Dec 21 15:25:23 2009 +1100
@@ -42,7 +42,7 @@
 #include "DictionaryCheckSuite.h"
 
 typedef struct {
-   unsigned int   rank;
+   int rank;
 } DictionaryCheckSuiteData;
 
 void DictionaryCheckSuite_Setup( DictionaryCheckSuiteData* data ) {
diff -r b458ce293439 -r 757ea8463cae Base/Extensibility/tests/EntryPointSuite.c
--- a/Base/Extensibility/tests/EntryPointSuite.c	Mon Dec 21 12:39:45 2009 +1100
+++ b/Base/Extensibility/tests/EntryPointSuite.c	Mon Dec 21 15:25:23 2009 +1100
@@ -45,9 +45,9 @@ Stream* stream;
 #define NUM_TEST_FUNCS 10
 
 typedef struct {
-   EntryPoint*    ep;
-   Bool           testFuncsRan[NUM_TEST_FUNCS];
-   unsigned int   rank;
+   EntryPoint*	ep;
+   Bool			testFuncsRan[NUM_TEST_FUNCS];
+   int			rank;
 } EntryPointSuiteData;
 
 void TestHook0( EntryPointSuiteData* data ) {
diff -r b458ce293439 -r 757ea8463cae Base/Foundation/tests/MemMonitorSuite.c
--- a/Base/Foundation/tests/MemMonitorSuite.c	Mon Dec 21 12:39:45 2009 +1100
+++ b/Base/Foundation/tests/MemMonitorSuite.c	Mon Dec 21 15:25:23 2009 +1100
@@ -43,8 +43,8 @@
 
 
 typedef struct {
-   Stg_MemMonitor*   mm;
-   unsigned int      rank;   
+   Stg_MemMonitor*	mm;
+   int					rank;   
 } MemMonitorSuiteData;
 
 
diff -r b458ce293439 -r 757ea8463cae Base/Foundation/tests/MemoryReportSuite.c
--- a/Base/Foundation/tests/MemoryReportSuite.c	Mon Dec 21 12:39:45 2009 +1100
+++ b/Base/Foundation/tests/MemoryReportSuite.c	Mon Dec 21 15:25:23 2009 +1100
@@ -64,7 +64,7 @@ typedef struct {
 typedef struct {
    Memory*                 savedStgMemory;
    MemoryReport*           report;
-   unsigned int            rank;   
+   int							rank;   
    void*                   bytesObj;
    void*                   bytesArray;
    StructA*                object;
diff -r b458ce293439 -r 757ea8463cae Base/IO/tests/JournalSuite.h
--- a/Base/IO/tests/JournalSuite.h	Mon Dec 21 12:39:45 2009 +1100
+++ b/Base/IO/tests/JournalSuite.h	Mon Dec 21 15:25:23 2009 +1100
@@ -12,8 +12,8 @@ typedef struct {
    FILE*          testStdOutFile;
    FILE*          testStdErrFile;
    MPI_Comm       comm;
-   unsigned int   rank;
-   unsigned int   nProcs;
+   int				rank;
+   int 				nProcs;
 } JournalSuiteData;
 
 #endif
diff -r b458ce293439 -r 757ea8463cae Base/IO/tests/PathUtilsSuite.c
--- a/Base/IO/tests/PathUtilsSuite.c	Mon Dec 21 12:39:45 2009 +1100
+++ b/Base/IO/tests/PathUtilsSuite.c	Mon Dec 21 15:25:23 2009 +1100
@@ -42,7 +42,7 @@
 #include "PathUtilsSuite.h"
 
 typedef struct {
-   unsigned int   rank;
+   int rank;
 } PathUtilsSuiteData;
 
 
diff -r b458ce293439 -r 757ea8463cae pcu/src/checks.c
--- a/pcu/src/checks.c	Mon Dec 21 12:39:45 2009 +1100
+++ b/pcu/src/checks.c	Mon Dec 21 15:25:23 2009 +1100
@@ -35,7 +35,7 @@ void _pcu_check_fileEq( const char* cons
    char           file1Line[MAXLINE];
    char           file2Line[MAXLINE];
    char           file2LineCopy[MAXLINE];
-   unsigned int   rank;
+   int				rank;
    char*          ret1;
    char*          ret2;
    unsigned int   ii=0;



More information about the CIG-COMMITS mailing list