Changeset 7705
- Timestamp:
- Apr 30, 2010, 8:57:25 PM (13 years ago)
- Location:
- anuga_core/source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga_parallel/run_parallel_sw_merimbula.py
r7702 r7705 46 46 #-------------------------------------------------------------------------- 47 47 48 #mesh_filename = "merimbula_10785_1.tsh" ; x0 = 756000.0 ; x1 = 756500.048 mesh_filename = "merimbula_10785_1.tsh" ; x0 = 756000.0 ; x1 = 756500.0 49 49 #mesh_filename = "merimbula_43200.tsh" ; x0 = 756000.0 ; x1 = 756500.0 50 mesh_filename = "test-100.tsh" ; x0 = 0.25 ; x1 = 0.550 #mesh_filename = "test-100.tsh" ; x0 = 0.25 ; x1 = 0.5 51 51 yieldstep = 5 52 52 finaltime = 200 -
anuga_core/source/pymetis/metis-4.0/Lib/kvmetis.c
r2051 r7705 67 67 } 68 68 ctrl.optype = OP_KVMETIS; 69 ctrl.CoarsenTo = amax((*nvtxs)/(40* log2(*nparts)), 20*(*nparts));69 ctrl.CoarsenTo = amax((*nvtxs)/(40*ilog2(*nparts)), 20*(*nparts)); 70 70 ctrl.maxvwgt = 1.5*((graph.vwgt ? idxsum(*nvtxs, graph.vwgt) : (*nvtxs))/ctrl.CoarsenTo); 71 71 -
anuga_core/source/pymetis/metis-4.0/Lib/mkmetis.c
r2051 r7705 48 48 } 49 49 ctrl.optype = OP_KMETIS; 50 ctrl.CoarsenTo = amax((*nvtxs)/(20* log2(*nparts)), 30*(*nparts));50 ctrl.CoarsenTo = amax((*nvtxs)/(20*ilog2(*nparts)), 30*(*nparts)); 51 51 52 52 ctrl.nmaxvwgt = 1.5/(1.0*ctrl.CoarsenTo); -
anuga_core/source/pymetis/metis-4.0/Lib/proto.h
r2051 r7705 460 460 int ispow2(int); 461 461 void InitRandom(int); 462 int log2(int);462 int ilog2(int); 463 463 464 464 -
anuga_core/source/pymetis/metis-4.0/Lib/rename.h
r2051 r7705 411 411 #define ispow2 __ispow2 412 412 #define InitRandom __InitRandom 413 #define log2 __log2414 415 416 417 418 413 #define ilog2 __ilog2 414 415 416 417 418 -
anuga_core/source/pymetis/metis-4.0/Lib/util.c
r2051 r7705 508 508 509 509 /************************************************************************* 510 * This function returns the log2(x)511 **************************************************************************/ 512 int log2(int a)510 * This function returns the ilog2(x) 511 **************************************************************************/ 512 int ilog2(int a) 513 513 { 514 514 int i;
Note: See TracChangeset
for help on using the changeset viewer.