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

📄 vorpal.m4

📁 pic 模拟程序!面向对象
💻 M4
字号:
dnl ######################################################################dnldnl File:	vorpal.m4dnldnl Purpose:	Check for VORPAL defines, including VDIM anddnl		MAX_PARTICLE_GROUP_SIZEdnldnl Version: $Id: vorpal.m4,v 1.4 2005/08/10 10:09:17 cary Exp $dnldnl Tech-X configure systemdnldnl ######################################################################dnl ######################################################################dnldnl Check for VDIM=9 dnldnl ######################################################################AC_ARG_WITH(vdim,[  --with-vdim=<value of VDIM>     set max # of non spatial particle variables], VDIM="$withval",VDIM="")AC_MSG_CHECKING(values of VDIM)# Extract the vdim values# echo VDIM = \'$VDIM\'if test -n "$VDIM"; then  vdimvals=`echo $VDIM | sed 's/,/ /g'`else  vdimvals="3 4 9"fi# echo vdimvals = $vdimvalsfor i in $vdimvals; do  case $i in    1)      AC_DEFINE([VDIM1], 1, [Define if have VDIM=1 particles])      ;;    2)      AC_DEFINE([VDIM2], 1, [Define if have VDIM=2 particles])      ;;    3)      AC_DEFINE([VDIM3], 1, [Define if have VDIM=3 particles])      ;;    4)      AC_DEFINE([VDIM4], 1, [Define if have VDIM=4 particles])      ;;    8)      AC_DEFINE([VDIM8], 1, [Define if have VDIM=8 particles])      ;;    9)      AC_DEFINE(VDIM9, 1, [Define if have VDIM=9 particles])      AC_DEFINE([HAVE_VAR_DT_PTCLS], 1,	[Define if have variable time step particles])      VPVARDT_LIBFLAG="-L../vpvardt -lvpvardt"      ;;    *)      AC_MSG_ERROR(VDIM set to invalid value of $i. Currently must set to 1, 2, 3, 4 or 9.)	      ;;  esacdoneAC_MSG_RESULT($vdimvals)AC_SUBST(VPVARDT_LIBFLAG)# Get the maximum particle group sizeAC_MSG_CHECKING(maximum size of a particle group)AC_ARG_WITH(max-ptcl-grp-size,[  --with-max-ptcl-grp-size=<value of MAX_PARTICLE_GROUP_SIZE>     set max size of a particle group], MAX_PARTICLE_GROUP_SIZE=$withval, MAX_PARTICLE_GROUP_SIZE=1024)AC_DEFINE_UNQUOTED([MAX_PARTICLE_GROUP_SIZE], $MAX_PARTICLE_GROUP_SIZE,[Define the maximum size of a particle group])AC_MSG_RESULT($MAX_PARTICLE_GROUP_SIZE)

⌨️ 快捷键说明

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