亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? eval.cc

?? c++編寫(xiě)的并行拉馬克遺傳算法的程序。實(shí)現(xiàn)分析對(duì)接程序
?? CC
字號(hào):
/********************************************************************     These are the functions associated with the evaluation object.                                rsh 9/95********************************************************************/// #include <iostream.h>// #include <fstream.h>#include <math.h>#include "eval.h"extern FILE *logFile;#ifdef sgi    #include <stdio.h>    #include <string.h>    #include "structs.h"    #include <ieeefp.h>#else    extern "C"    {        #include <stdio.h>        #include <string.h>        #include "structs.h"    }#endif#ifdef sun    #include <ieeefp.h>#endif/*  The chromosome is assumed to have a layout like this -       | x | y | z | nx | ny | nz | ang | tor1 | ... | tor N |    where       x is the x translation       y is the y translation       z is the z translation       nx is the x component of the quaternion       ny is the y component of the quaternion       nz is the z component of the quaternion       ang is the angle portion of the quaternion       tor 1, ..., tor N are the ntor torsion angles*/void make_state_from_rep(Representation **rep, State *stateNow)/*    This routine modifies the various components of stateNow to correspond    to the chromosome.  */{   register int i;#ifdef DEBUG   (void)fprintf(logFile, "eval.cc/make_state_from_rep(Representation **rep, State *stateNow)\n");#endif /* DEBUG */   //  Do the translations   stateNow->T.x = rep[0]->gene(0).real;   stateNow->T.y = rep[1]->gene(0).real;   stateNow->T.z = rep[2]->gene(0).real;   //  Set up the quaternion   stateNow->Q.nx = rep[3]->gene(0).real;   stateNow->Q.ny = rep[3]->gene(1).real;   stateNow->Q.nz = rep[3]->gene(2).real;   stateNow->Q.ang = rep[4]->gene(0).real;      //  Copy the angles   for (i=1; i<=stateNow->ntor; i++) {      stateNow->tor[i-1] = rep[4]->gene(i).real;   }   mkUnitQuat(&(stateNow->Q));}double Eval::operator()(Representation **rep){   register int i;   int   B_outside = 0;   int   I_tor = 0;   int   indx = 0;   double energy = 0.0;#ifdef DEBUG    (void)fprintf(logFile,"eval.cc/double Eval::operator()(Representation **rep)\n");#endif /* DEBUG */   make_state_from_rep(rep, &stateNow);#ifdef DEBUG    if (is_out_grid(stateNow.T.x, stateNow.T.y, stateNow.T.z)) {       (void)fprintf(logFile,"eval.cc/stateNow.T is outside grid!\n");    }#endif /* DEBUG */#ifdef DEBUG    (void)fprintf(logFile,"eval.cc/Converting state to coordinates...\n");#endif /* DEBUG */    // Ligand could be inside or could still be outside, check all the atoms...   cnv_state_to_coords(stateNow, vt, tlist, stateNow.ntor, crdpdb, crd, natom);#ifdef DEBUG(void)fprintf(logFile,"eval.cc/Checking to see if all coordinates are inside grid...\n");#endif /* DEBUG */   //  Check to see if crd is valid   for (i=0; (i<natom)&&(!B_outside); i++) {      B_outside = is_out_grid(crd[i][0], crd[i][1], crd[i][2]);   } // i   if (!B_outside) {#ifdef DEBUG(void)fprintf(logFile,"eval.cc/All coordinates are inside grid...\n");#endif /* DEBUG *//*---------------------------------------------------------------------------* I have removed this call to save a stack-push, and inlined the code * instead...*                 -- Garrett**    energy = evaluate_energy(crd, charge, type, natom, map, inv_spacing, *                              xlo, ylo, zlo, nonbondlist, *                              e_internal, Nnb, B_calcIntElec, q1q2, *                              B_isGaussTorCon, B_isTorConstrained, stateNow, *                              B_ShowTorE, US_TorE, US_torProfile);* --------------------------------------------------------------------------*/        energy = quicktrilinterp( crd, charge, type, natom, map,                                   inv_spacing, xlo, ylo, zlo)                 + eintcal( nonbondlist, e_internal, crd, type, Nnb,                             B_calcIntElec, q1q2);        /*        energy = trilinterp( crd, charge, type, natom, map,                                   inv_spacing, eval_elec, eval_emap, xlo, ylo, zlo)                 + eintcal( nonbondlist, e_internal, crd, type, Nnb,                             B_calcIntElec, q1q2);                            */             if (B_isGaussTorCon) {            for (I_tor = 0; I_tor <= stateNow.ntor; I_tor++) {                if (B_isTorConstrained[I_tor] == 1) {                    indx = Rad2Div( WrpModRad(stateNow.tor[I_tor]) );                    if (B_ShowTorE) {                        energy += (double)(US_TorE[I_tor] = US_torProfile[I_tor][indx]);                    } else {                        energy += (double)US_torProfile[I_tor][indx];                    }                }            } // I_tor        }/*if*/   } else {        /*         * This confuses the GA and GA-LS, because there is no gradient         * information when all outside conformations are given the same         * energy.         *         * energy = BIG_ENERGY;  / / A really big number defined in autocomm.h         */        /*         * Instead...         *         * Penalise atoms outside grid based on the square of the          * distance from centre of grid map, otherwise use the normal          * trilinear interpolation.         */        energy = outsidetrilinterp( crd, charge, type, natom, map,                                    inv_spacing, // eval_elec, eval_emap,                                     xlo, ylo, zlo,                                    xhi, yhi, zhi,  xcen, ycen, zcen )                 + eintcal( nonbondlist, e_internal, crd, type, Nnb,                            B_calcIntElec, q1q2);        if (B_isGaussTorCon) {            for (I_tor = 0; I_tor <= stateNow.ntor; I_tor++) {                if (B_isTorConstrained[I_tor] == 1) {                    indx = Rad2Div( WrpModRad(stateNow.tor[I_tor]) );                    if (B_ShowTorE) {                        energy += (double)(US_TorE[I_tor] = US_torProfile[I_tor][indx]);                    } else {                        energy += (double)US_torProfile[I_tor][indx];                    }                }            } // I_tor        } // if   }   num_evals++;   if (!finite(energy)) {      (void)fprintf( logFile, "eval.cc:  ERROR!  energy is infinite!\n\n");      for (i=0; i<natom; i++) {          // (void)fprintf( logFile, "ATOM  %5d  C   INF     1    %8.3f%8.3f%8.3f %+8.2f %+6.2f  %+6.3f\n", i+1, crd[i][X], crd[i][Y], crd[i][Z], eval_emap[i], eval_elec[i], charge[i]);           (void)fprintf( logFile, "ATOM  %5d  C   INF     1    %8.3f%8.3f%8.3f %+8.2f %+6.2f  %+6.3f\n", i+1, crd[i][X], crd[i][Y], crd[i][Z], 0.0, 0.0, charge[i]);       } // i   }   if (ISNAN(energy)) {      (void)fprintf( logFile, "eval.cc:  ERROR!  energy is not a number!\n\n");      for (i=0; i<natom; i++) {          // (void)fprintf( logFile, "ATOM  %5d  C   NaN     1    %8.3f%8.3f%8.3f %+8.2f %+6.2f  %+6.3f\n", i+1, crd[i][X], crd[i][Y], crd[i][Z], eval_emap[i], eval_elec[i], charge[i]);           (void)fprintf( logFile, "ATOM  %5d  C   NaN     1    %8.3f%8.3f%8.3f %+8.2f %+6.2f  %+6.3f\n", i+1, crd[i][X], crd[i][Y], crd[i][Z], 0.0, 0.0, charge[i]);       } // i   }   return(energy);}int Eval::write(FILE *out_file, Representation **rep){    int i, retval;    //char rec14[14];#ifdef DEBUG    (void)fprintf(logFile,"eval.cc/int Eval::write(FILE *out_file, Representation **rep)\n");#endif /*DEBUG*/    make_state_from_rep(rep, &stateNow);    cnv_state_to_coords(stateNow, vt, tlist, stateNow.ntor, crdpdb, crd, natom);    for (i=0; i<natom; i++) {        // strncpy( rec14, &atomstuff[i][13], (size_t)13);        // rec14[13]='\0';        //strncpy(rec14, "C   RES     1\0", (size_t)14);        //retval = fprintf( out_file, "ATOM  %5d  %13s    %8.3f%8.3f%8.3f %+8.2f %+6.2f  %+6.3f\n", i+1, rec14, crd[i][X], crd[i][Y], crd[i][Z], 0., 0., charge[i]);         retval = fprintf( out_file, "ATOM  %5d  C   RES     1    %8.3f%8.3f%8.3f %+8.2f %+6.2f  %+6.3f\n", i+1, crd[i][X], crd[i][Y], crd[i][Z], 0., 0., charge[i]);     } // i    return retval;}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久你懂得1024| 欧美性生交片4| 国产午夜精品一区二区 | 欧美一区二区网站| 天天综合天天做天天综合| 久久久www免费人成精品| 国产乱淫av一区二区三区 | 欧美亚洲日本一区| 午夜欧美电影在线观看| 日韩一区二区三区免费观看| 国产真实乱偷精品视频免| 国产欧美日韩视频在线观看| 91论坛在线播放| 日本欧美韩国一区三区| 久久综合九色综合久久久精品综合| 国产一本一道久久香蕉| 亚洲人一二三区| 91精品蜜臀在线一区尤物| 国产一区二区主播在线| 亚洲男同性视频| 日韩欧美一级二级三级| 成人的网站免费观看| 亚洲综合免费观看高清完整版在线 | 99精品热视频| 水野朝阳av一区二区三区| 久久久久一区二区三区四区| 91免费精品国自产拍在线不卡| 五月天丁香久久| 国产精品三级电影| 欧美一区二区三区视频免费| 成人污视频在线观看| 日韩精品色哟哟| 国产精品久久毛片| 欧美一区二区三区播放老司机| 成人国产在线观看| 日本免费在线视频不卡一不卡二| 国产精品久久久久久久久图文区| 欧美精选午夜久久久乱码6080| 国产a级毛片一区| 日日骚欧美日韩| 亚洲天堂免费看| 精品乱码亚洲一区二区不卡| 日本高清成人免费播放| 国产一区二区三区国产| 日韩国产一二三区| 一区二区三区在线播| 日本一区二区在线不卡| 欧美大尺度电影在线| 91黄色在线观看| 高清国产午夜精品久久久久久| 首页国产欧美久久| 夜夜嗨av一区二区三区网页| 久久久久高清精品| 日韩精品一区二区三区四区| 欧美日韩免费一区二区三区视频| 成人福利视频在线看| 国产一区二区影院| 麻豆91免费看| 免费看黄色91| 秋霞国产午夜精品免费视频| 亚洲在线视频一区| 亚洲精品第一国产综合野| 国产精品美女久久久久高潮| 久久先锋影音av鲁色资源网| 日韩丝袜美女视频| 欧美一卡二卡在线| 欧美精品视频www在线观看| 欧美中文字幕不卡| 在线欧美日韩精品| 91福利精品视频| 欧亚洲嫩模精品一区三区| 色视频欧美一区二区三区| 成人蜜臀av电影| 成人免费视频视频在线观看免费| 国产精品一区二区黑丝| 国产在线播放一区三区四| 韩日精品视频一区| 国产电影精品久久禁18| 国产成人午夜精品影院观看视频 | 色婷婷综合久久久久中文| 91亚洲大成网污www| 972aa.com艺术欧美| 一本久久精品一区二区| 欧美在线观看一区| 欧美精品久久天天躁| 欧美一区二区三区在线观看| 亚洲靠逼com| 一区二区免费在线播放| 亚洲午夜av在线| 五月综合激情网| 麻豆91精品视频| 国产激情精品久久久第一区二区 | 欧美日韩日日骚| 91精品欧美福利在线观看| 欧美成人vr18sexvr| 久久久久久一二三区| 中文字幕国产一区二区| 亚洲视频在线一区观看| 亚洲国产日韩综合久久精品| 奇米影视7777精品一区二区| 国产在线视频精品一区| 丁香亚洲综合激情啪啪综合| 97久久人人超碰| 欧美精品一二三| 国产欧美一区二区三区在线看蜜臀| 国产精品五月天| 午夜精品久久一牛影视| 国产综合成人久久大片91| www.av亚洲| 欧美理论电影在线| 国产三级精品三级| 亚洲午夜激情网站| 国产一区二区免费看| 91国偷自产一区二区三区成为亚洲经典| 欧美色窝79yyyycom| 久久久亚洲精华液精华液精华液| 亚洲男帅同性gay1069| 免费成人在线影院| www.av亚洲| 日韩欧美精品在线视频| 亚洲男人电影天堂| 国产毛片一区二区| 欧美日韩欧美一区二区| 欧美高清在线视频| 日本麻豆一区二区三区视频| 99视频精品在线| 精品久久久三级丝袜| 一区二区三区在线看| 国产成人亚洲综合a∨婷婷 | 91麻豆精东视频| 欧美一级视频精品观看| 欧美日韩电影在线| 欧美无人高清视频在线观看| 久久久久久久久岛国免费| 亚洲线精品一区二区三区八戒| 成人午夜精品在线| 日韩欧美一区在线| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 在线电影院国产精品| 亚洲图片欧美视频| 欧美日韩国产小视频| 午夜国产精品影院在线观看| 欧美色图激情小说| 日韩在线a电影| 日韩一级欧美一级| 狠狠色狠狠色综合系列| 国产视频亚洲色图| 99精品久久99久久久久| 亚洲人亚洲人成电影网站色| 欧美亚洲综合网| 日本亚洲视频在线| 久久一区二区三区四区| 豆国产96在线|亚洲| 亚洲日本丝袜连裤袜办公室| 欧美艳星brazzers| 老司机免费视频一区二区三区| 久久午夜老司机| 99久久777色| 午夜影视日本亚洲欧洲精品| 日韩你懂的在线播放| 国产sm精品调教视频网站| 亚洲精品久久7777| 欧美一卡2卡3卡4卡| 国产91丝袜在线播放九色| 亚洲女爱视频在线| 日韩视频在线你懂得| 成人免费毛片aaaaa**| 一区二区欧美视频| 精品国产91乱码一区二区三区 | 久久爱www久久做| 中文字幕欧美国产| 欧美伊人久久久久久久久影院| 秋霞电影网一区二区| 中文字幕的久久| 欧美老肥妇做.爰bbww| 国产福利电影一区二区三区| 一区二区三区电影在线播| 精品免费国产二区三区| 91免费视频观看| 韩国成人在线视频| 亚洲一卡二卡三卡四卡无卡久久| 日韩美一区二区三区| 91视频91自| 国产一区二区三区四| 亚洲电影中文字幕在线观看| 久久精品日产第一区二区三区高清版| 一本到不卡精品视频在线观看| 久久99久久久久| 亚洲午夜影视影院在线观看| 国产亚洲女人久久久久毛片| 欧美另类一区二区三区| av网站一区二区三区| 久久精品噜噜噜成人av农村| 亚洲欧洲综合另类在线| 久久免费偷拍视频| 欧美一区二区三区精品| 色婷婷久久久综合中文字幕| 国产大陆a不卡| 久久99这里只有精品| 亚洲国产综合91精品麻豆|