⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sp_ienv.c

📁 SuperLU 2.2版本。对大型、稀疏、非对称的线性系统的直接求解
💻 C
字号:
/* * File name:		sp_ienv.c * History:             Modified from lapack routine ILAENV */#include "superlu_ddefs.h"#include "machines.h"int_tsp_ienv_dist(int_t ispec){/*    Purpose       =======       sp_ienv_dist() is inquired to choose machine-dependent parameters for the    local environment. See ISPEC for a description of the parameters.       This version provides a set of parameters which should give good,       but not optimal, performance on many of the currently available       computers.  Users are encouraged to modify this subroutine to set       the tuning parameters for their particular machine using the option       and problem size information in the arguments.       Arguments       =========       ISPEC   (input) int            Specifies the parameter to be returned as the value of SP_IENV_DIST.            = 1: the panel size w; a panel consists of w consecutive	         columns of matrix A in the process of Gaussian elimination.		 The best value depends on machine's cache characters.            = 2: the relaxation parameter relax; if the number of	         nodes (columns) in a subtree of the elimination tree is less		 than relax, this subtree is considered as one supernode,		 regardless of the their row structures.            = 3: the maximum size for a supernode, which must be greater                 than or equal to relaxation parameter (see case 2);	    = 4: the minimum row dimension for 2-D blocking to be used;	    = 5: the minimum column dimension for 2-D blocking to be used;	    = 6: the estimated fills factor for the adjacency structures 	         of L and U, compared with A;	       (SP_IENV_DIST) (output) int            >= 0: the value of the parameter specified by ISPEC               < 0:  if SP_IENV_DIST = -k, the k-th argument had an illegal value.      ===================================================================== */    int i;    switch (ispec) {#if ( MACH==CRAY_T3E )	case 2: return (1);	case 3: return (30);#elif ( MACH==IBM )	case 2: return (1);	case 3: return (100);#else	case 2: return (1);	case 3: return (50);#endif        case 6: return (4);    }    /* Invalid value for ISPEC */    i = 1;    xerbla_("sp_ienv", &i);    return 0;} /* sp_ienv_dist */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -