Revision: 57014
          http://sourceforge.net/p/brlcad/code/57014
Author:   brlcad
Date:     2013-08-21 03:49:45 +0000 (Wed, 21 Aug 2013)
Log Message:
-----------
the fix wasn't to remove -Pncpu support but should have been to propagate it 
like the other tools.

Modified Paths:
--------------
    brlcad/trunk/src/conv/nmg/g-nmg.c

Modified: brlcad/trunk/src/conv/nmg/g-nmg.c
===================================================================
--- brlcad/trunk/src/conv/nmg/g-nmg.c   2013-08-21 03:44:11 UTC (rev 57013)
+++ brlcad/trunk/src/conv/nmg/g-nmg.c   2013-08-21 03:49:45 UTC (rev 57014)
@@ -52,7 +52,7 @@
 static int     NMG_debug;              /* saved arg of -X, for longjmp 
handling */
 static int     verbose;
 static int     do_bots=0;              /* flag to output BOT's instead of 
NMG's */
-/* static int  ncpu = 1; */            /* Number of processors */
+static int     ncpu = 1;               /* Number of processors */
 static int     nmg_count=0;            /* Count of nmgregions written to 
output */
 static char    *out_file = "nmg.g";    /* Output filename */
 static struct rt_wdb           *fp_out; /* Output file pointer */
@@ -314,7 +314,7 @@
        name = (&(dp->d_namep));
 
        (void) db_walk_tree(db, 1, (const char **)name,
-                           1,
+                           ncpu,
                            &tree_state,
                            0,
                            do_region_end,
@@ -449,7 +449,7 @@
     rt_init_resource(&rt_uniresource, 0, NULL);
 
     /* Get command line arguments. */
-    while ((c = bu_getopt(argc, argv, "t:a:n:o:r:bvx:PX:h?")) != -1) {
+    while ((c = bu_getopt(argc, argv, "t:a:n:o:r:bvx:P:X:h?")) != -1) {
        switch (c) {
            case 'b':           /* make BOT's instead of NMG's */
                do_bots = 1;
@@ -476,6 +476,7 @@
                verbose++;
                break;
            case 'P':
+               ncpu = atoi(bu_optarg);
                RTG.debug = 1;
                break;
            case 'x':

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to