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

📄 osserv.c

📁 fortran并行计算包
💻 C
字号:
/* -*- Mode: C; c-basic-offset:4 ; -*- *//* *  (C) 2006 by Argonne National Laboratory. *      See COPYRIGHT in top-level directory. */#include "mpiimpl.h"#if defined(USE_WINDOWS_OS)/* If windows, set the default width to the window size */HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);if (hConsole != INVALID_HANDLE_VALUE){    CONSOLE_SCREEN_BUFFER_INFO info;    if (GetConsoleScreenBufferInfo(hConsole, &info))    {	MPIR_Err_chop_width = info.dwMaximumWindowSize.X;    }}#elif defined(USE_GENERIC_UNIX_OS)/* If Unix and if ncurses is available, you can do the following: */#include <ncurses.h>int row, col;initscr();getmaxyx(stdscr,row,col);  /* This is a macro *//* An alternative is to allow mpiexec to provide this information, since   it is the one that is actually connected to the display in the typical    Unix case */#else #endif

⌨️ 快捷键说明

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