<p><b>duda</b> 2010-12-28 13:48:48 -0700 (Tue, 28 Dec 2010)</p><p>1) Add namelist option config_decomp_file_prefix, which is a character<br>
   string specifying the prefix of mesh decomposition files (to be suffixed <br>
   with the task count); this option is in the &amp;io record with a default<br>
   value of &quot;graph.info.part.&quot;<br>
<br>
2) Add compiler flags in top-level Makefile to use big-endian format for all<br>
   unformatted reads and writes.<br>
<br>
<br>
M    src/core_hyd_atmos/Registry<br>
M    src/core_sw/Registry<br>
M    src/core_ocean/Registry<br>
M    src/framework/module_block_decomp.F<br>
M    src/framework/Makefile<br>
M    Makefile<br>
</p><hr noshade><pre><font color="gray">Modified: trunk/mpas/Makefile
===================================================================
--- trunk/mpas/Makefile        2010-12-23 18:21:31 UTC (rev 665)
+++ trunk/mpas/Makefile        2010-12-28 20:48:48 UTC (rev 666)
@@ -38,7 +38,7 @@
         &quot;CC = cc&quot; \
         &quot;SFC = ftn&quot; \
         &quot;SCC = cc&quot; \
-        &quot;FFLAGS = -i4 -r8 -gopt -O2 -Mvect=nosse -Kieee&quot; \
+        &quot;FFLAGS = -i4 -r8 -gopt -O2 -Mvect=nosse -Kieee -convert big_endian&quot; \
         &quot;CFLAGS = -fast&quot; \
         &quot;LDFLAGS = &quot; \
         &quot;CORE = $(CORE)&quot; \
@@ -50,7 +50,7 @@
         &quot;CC = mpicc&quot; \
         &quot;SFC = pgf90&quot; \
         &quot;SCC = pgcc&quot; \
-        &quot;FFLAGS = -r8 -O3&quot; \
+        &quot;FFLAGS = -r8 -O3 -byteswapio&quot; \
         &quot;CFLAGS = -O3&quot; \
         &quot;LDFLAGS = -O3&quot; \
         &quot;CORE = $(CORE)&quot; \
@@ -62,7 +62,7 @@
         &quot;CC = pgcc&quot; \
         &quot;SFC = pgf90&quot; \
         &quot;SCC = pgcc&quot; \
-        &quot;FFLAGS = -i4 -r8 -g -O2&quot; \
+        &quot;FFLAGS = -i4 -r8 -g -O2 -byteswapio&quot; \
         &quot;CFLAGS = -fast&quot; \
         &quot;LDFLAGS = &quot; \
         &quot;CORE = $(CORE)&quot; \
@@ -74,7 +74,7 @@
         &quot;CC = pgcc&quot; \
         &quot;SFC = pgf90&quot; \
         &quot;SCC = pgcc&quot; \
-        &quot;FFLAGS = -r8 -O0 -g -Mbounds -Mchkptr&quot; \
+        &quot;FFLAGS = -r8 -O0 -g -Mbounds -Mchkptr -byteswapio&quot; \
         &quot;CFLAGS = -O0 -g&quot; \
         &quot;LDFLAGS = -O0 -g -Mbounds -Mchkptr&quot; \
         &quot;CORE = $(CORE)&quot; \
@@ -86,7 +86,7 @@
         &quot;CC = gcc&quot; \
         &quot;SFC = ifort&quot; \
         &quot;SCC = gcc&quot; \
-        &quot;FFLAGS = -real-size 64 -O3&quot; \
+        &quot;FFLAGS = -real-size 64 -O3 -convert big_endian&quot; \
         &quot;CFLAGS = -O3 -m64&quot; \
         &quot;LDFLAGS = -O3&quot; \
         &quot;CORE = $(CORE)&quot; \
@@ -98,7 +98,7 @@
         &quot;CC = mpicc&quot; \
         &quot;SFC = gfortran&quot; \
         &quot;SCC = gcc&quot; \
-        &quot;FFLAGS = -O3 -m64 -ffree-line-length-none -fdefault-real-8&quot; \
+        &quot;FFLAGS = -O3 -m64 -ffree-line-length-none -fdefault-real-8 -fconvert=big-endian&quot; \
         &quot;CFLAGS = -O3 -m64&quot; \
         &quot;LDFLAGS = -O3 -m64&quot; \
         &quot;CORE = $(CORE)&quot; \
@@ -110,7 +110,7 @@
         &quot;CC = gcc&quot; \
         &quot;SFC = gfortran&quot; \
         &quot;SCC = gcc&quot; \
-        &quot;FFLAGS = -O3 -m64 -ffree-line-length-none -fdefault-real-8&quot; \
+        &quot;FFLAGS = -O3 -m64 -ffree-line-length-none -fdefault-real-8 -fconvert=big-endian&quot; \
         &quot;CFLAGS = -O3 -m64&quot; \
         &quot;LDFLAGS = -O3 -m64&quot; \
         &quot;CORE = $(CORE)&quot; \
@@ -122,7 +122,7 @@
         &quot;CC = mpicc&quot; \
         &quot;SFC = g95&quot; \
         &quot;SCC = gcc&quot; \
-        &quot;FFLAGS = -O3 -ffree-line-length-huge -r8&quot; \
+        &quot;FFLAGS = -O3 -ffree-line-length-huge -r8 -fendian=big&quot; \
         &quot;CFLAGS = -O3&quot; \
         &quot;LDFLAGS = -O3&quot; \
         &quot;CORE = $(CORE)&quot; \
@@ -134,7 +134,7 @@
         &quot;CC = gcc&quot; \
         &quot;SFC = g95&quot; \
         &quot;SCC = gcc&quot; \
-        &quot;FFLAGS = -O3 -ffree-line-length-huge -r8&quot; \
+        &quot;FFLAGS = -O3 -ffree-line-length-huge -r8 -fendian=big&quot; \
         &quot;CFLAGS = -O3&quot; \
         &quot;LDFLAGS = -O3&quot; \
         &quot;CORE = $(CORE)&quot; \

Modified: trunk/mpas/src/core_hyd_atmos/Registry
===================================================================
--- trunk/mpas/src/core_hyd_atmos/Registry        2010-12-23 18:21:31 UTC (rev 665)
+++ trunk/mpas/src/core_hyd_atmos/Registry        2010-12-28 20:48:48 UTC (rev 666)
@@ -23,6 +23,7 @@
 namelist character io       config_input_name           grid.nc
 namelist character io       config_output_name          output.nc
 namelist character io       config_restart_name         restart.nc
+namelist character io       config_decomp_file_prefix   graph.info.part.
 namelist integer   restart  config_restart_interval     0
 namelist logical   restart  config_do_restart           false
 namelist real      restart  config_restart_time         172800.0

Modified: trunk/mpas/src/core_ocean/Registry
===================================================================
--- trunk/mpas/src/core_ocean/Registry        2010-12-23 18:21:31 UTC (rev 665)
+++ trunk/mpas/src/core_ocean/Registry        2010-12-28 20:48:48 UTC (rev 666)
@@ -7,9 +7,10 @@
 namelist integer   sw_model config_ntimesteps        7500
 namelist integer   sw_model config_output_interval   500
 namelist integer   sw_model config_stats_interval    100
-namelist character io       config_input_name        grid.nc
-namelist character io       config_output_name       output.nc
-namelist character io       config_restart_name      restart.nc
+namelist character io       config_input_name          grid.nc
+namelist character io       config_output_name         output.nc
+namelist character io       config_restart_name        restart.nc
+namelist character io       config_decomp_file_prefix  graph.info.part.
 namelist integer   restart  config_restart_interval  0
 namelist logical   restart  config_do_restart        false
 namelist real      restart  config_restart_time      172800.0

Modified: trunk/mpas/src/core_sw/Registry
===================================================================
--- trunk/mpas/src/core_sw/Registry        2010-12-23 18:21:31 UTC (rev 665)
+++ trunk/mpas/src/core_sw/Registry        2010-12-28 20:48:48 UTC (rev 666)
@@ -16,9 +16,10 @@
 namelist logical   sw_model config_positive_definite    false
 namelist logical   sw_model config_monotonic            false
 namelist real      sw_model config_apvm_upwinding       0.5
-namelist character io       config_input_name        grid.nc
-namelist character io       config_output_name       output.nc
-namelist character io       config_restart_name      restart.nc
+namelist character io       config_input_name          grid.nc
+namelist character io       config_output_name         output.nc
+namelist character io       config_restart_name        restart.nc
+namelist character io       config_decomp_file_prefix  graph.info.part.
 namelist integer   restart  config_restart_interval  0
 namelist logical   restart  config_do_restart        false
 namelist real      restart  config_restart_time      172800.0

Modified: trunk/mpas/src/framework/Makefile
===================================================================
--- trunk/mpas/src/framework/Makefile        2010-12-23 18:21:31 UTC (rev 665)
+++ trunk/mpas/src/framework/Makefile        2010-12-28 20:48:48 UTC (rev 666)
@@ -31,7 +31,7 @@
 
 module_dmpar.o: module_sort.o streams.o
 
-module_block_decomp.o: module_grid_types.o module_hash.o
+module_block_decomp.o: module_grid_types.o module_hash.o module_configure.o
 
 module_io_input.o: module_grid_types.o module_dmpar.o module_block_decomp.o module_sort.o module_configure.o $(ZOLTANOBJ)
 

Modified: trunk/mpas/src/framework/module_block_decomp.F
===================================================================
--- trunk/mpas/src/framework/module_block_decomp.F        2010-12-23 18:21:31 UTC (rev 665)
+++ trunk/mpas/src/framework/module_block_decomp.F        2010-12-28 20:48:48 UTC (rev 666)
@@ -18,6 +18,8 @@
 
    subroutine block_decomp_cells_for_proc(dminfo, partial_global_graph_info, local_cell_list)
 
+      use configure
+
       implicit none
 
       type (dm_info), intent(in) :: dminfo
@@ -41,15 +43,15 @@
 
             iunit = 50 + dminfo % my_proc_id
             if (dminfo % nprocs &lt; 10) then
-               write(filename,'(a,i1)') 'graph.info.part.', dminfo % nprocs
+               write(filename,'(a,i1)') trim(config_decomp_file_prefix), dminfo % nprocs
             else if (dminfo % nprocs &lt; 100) then
-               write(filename,'(a,i2)') 'graph.info.part.', dminfo % nprocs
+               write(filename,'(a,i2)') trim(config_decomp_file_prefix), dminfo % nprocs
             else if (dminfo % nprocs &lt; 1000) then
-               write(filename,'(a,i3)') 'graph.info.part.', dminfo % nprocs
+               write(filename,'(a,i3)') trim(config_decomp_file_prefix), dminfo % nprocs
             else if (dminfo % nprocs &lt; 10000) then
-               write(filename,'(a,i4)') 'graph.info.part.', dminfo % nprocs
+               write(filename,'(a,i4)') trim(config_decomp_file_prefix), dminfo % nprocs
             else if (dminfo % nprocs &lt; 100000) then
-               write(filename,'(a,i5)') 'graph.info.part.', dminfo % nprocs
+               write(filename,'(a,i5)') trim(config_decomp_file_prefix), dminfo % nprocs
             end if
           
             open(unit=iunit, file=trim(filename), form='formatted', status='old', iostat=istatus)

</font>
</pre>