sort_enrg.cc

来自「c++编写的并行拉马克遗传算法的程序。实现分析对接程序」· CC 代码 · 共 32 行

CC
32 行
字号
/* sort_enrg.cc */#ifdef sgi    #include "sort_enrg.h"#else    extern "C"    {        #include "sort_enrg.h"    }#endifextern FILE *logFile;void sort_enrg( float econf[MAX_RUNS],                int isort[MAX_RUNS],		int nconf ){/*__________________________________________________________________________ | Sort conformations on energy                                             | |__________________________________________________________________________| | Searches through all conformations;  puts in isort[0] the index of the   | | lowest energy, in isort[1] the next lowest energy's index, and so on.    | |__________________________________________________________________________| | WARNING: Fails if any 2 or more econf[] energies are equal.              | |__________________________________________________________________________|*/    quicksort( econf, isort, 0, nconf-1 );}/* EOF */

⌨️ 快捷键说明

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