Hello.  I can see the problem with change A.  When you change from TRADITIONAL to NPT_GEMC, you are changing the number of simulation boxes from 1 to 2.  In order to do the second box, it needs an additional input file, whose name is given by BOX2_FILE_NAME.  MC_QS.inp doesn't have that field in it, so it tries to open a blank file and then crashes with the error you're seeing.  You need to make another file, perhaps MC_QS_2.inp, and add a line for BOX2_FILE_NAME to both files.  BOX2_FILE_NAME for MC_QS.inp will be MC_QS_2.inp, and BOX2_FILE_NAME for MC_QS_2.inp will be MC_QS.inp.  Then each file knows about the other and CP2K can create two simulation boxes.<div><br></div><div>The problem with action B is related to that as well.  You have made it so that there is only one molecule type in box 1 (water).  However, when CP2K goes to box 2, it sees that argon is present as well.  If you add the following section to box 1 (and be sure that BOX2_FILE_NAME is correct in both boxes) and add the DFT stuff to box 2 as well, it should work.</div><div><br></div><div><div>        &MOLECULE</div><div>          NMOL 0</div><div>          CONN_FILE_NAME topology_fist_ARG.psf</div><div>        &END</div><div><br></div><div>Make sure the NMOL is correct for the number of molecules of that type in the box.  Also be sure that all the molecules are included together, and that they are arranged in the coordinate section to be in the same order that they are in the TOPOLOGY section.  Does that make sense?</div><div><br></div><div>                          Cheers, Matt</div><div><br></div><br>On Thursday, September 13, 2012 6:31:40 PM UTC-5, Northstar wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Dear Matt,<br><br>I am trying to establish MC-QS-NPT calculations.<br>I tested MC_QS.inp and GEMC_Npt_box1.inp in cp2k/test/MC, with the latest cp2k version.<br>It works well.<br>And then I make two kinds of modifications, type A and B.<br>Both have error.<br><br>Type A:<br>I used the MC_QS.inp file as model file<br>I only changed the "ENSEMBLE traditional" into "ENSEMBLE GEMC_NPT", and did nothing else. <br>The error is<br>'''<br> *****************************<wbr>***************<br> *** ERROR in open_file (MODULE cp_files) ***<br> *****************************<wbr>***************<br><br> *** The specified OLD file <> cannot be opened. It does not exist. ***<br><br> *** Program stopped at line number 375 of MODULE cp_files ***<br><br> ===== Routine Calling Stack ===== <br><br>            2 create_cp2k_input_reading<br>            1 CP2K<br> CP2K| Abnormal program termination, stopped by process number 0<br> '''<br> The modified input file is:<br> '''<br><br>Type B:<br>I used the MC_QS.inp and GEMC_Npt_box1.inp file as model files.<br>I past the motion section of MC_QS.inp by the motion section of GEMC_Npt_box1.inp<br>The error is:<br>'''<br>  Number of molecule types            2<br> &MOLECULE sections found            1<br><br><br> *****************************<wbr>**************************<br> *** ERROR in mc_input_file_create (MODULE mc_types) ***<br> *****************************<wbr>**************************<br><br> *** Did not find MOLECULE sections for every molecule in the simulation ***<br> *** (make sure both input files have all types)                         ***<br><br> *** Program stopped at line number 1030 of MODULE mc_types ***<br><br> ===== Routine Calling Stack ===== <br><br>            1 CP2K<br> CP2K| Abnormal program termination, stopped by process number 0<br> ''' <br><br> <br>I pasted error and modified input files as appendex bellow.<br>Could you help me out? <br>Thank you very much.<br> <br><br>WANG Riping<br>2012.9.14 <br> <br> <br> <br>Appendix<br> The modified input file for Type A.<br> '''<br> <br>&FORCE_EVAL<br>  METHOD Quickstep<br>  &DFT<br>    BASIS_SET_FILE_NAME ../../QS/BASIS_SET<br>    POTENTIAL_FILE_NAME ../../QS/POTENTIAL<br>    &MGRID<br>      CUTOFF 100<br>    &END MGRID<br>    &QS<br>      EXTRAPOLATION USE_PREV_WF<br>    &END QS<br>    &SCF<br>      SCF_GUESS ATOMIC<br>    &END SCF<br>    &XC<br>      &XC_FUNCTIONAL Pade<br>      &END XC_FUNCTIONAL<br>      &XC_GRID<br>        XC_DERIV SPLINE2<br>        XC_SMOOTH_RHO NONE<br>      &END XC_GRID<br>    &END XC<br>  &END DFT<br>  &SUBSYS<br>    &CELL<br>      ABC 5.04977 5.04977 5.04977<br>      &CELL_REF<br>        ABC 4.04977 4.04977 4.04977<br>      &END CELL_REF<br>    &END CELL<br>    &COORD<br>     O          2.8618391587       1.1262212638       0.8067716497<br>     H          3.7885812039       1.2213178792       0.4837188849<br>     H          2.4050791412       1.6367607407       0.0086990777<br>     O          1.2482936756       0.6926552354       3.5876311084<br>     H          2.0049860962       0.0755517129       3.2546387846<br>     H          1.1567427889       1.2966422959       2.8169934311<br>     O          4.8631825886       4.1751225282       1.5320584673<br>     H          4.0339593053       4.7472306483       1.6023778687<br>     H          4.5959779716       3.3785364775       1.1011958798<br>    &END COORD<br>    &KIND H<br>      BASIS_SET DZVP-GTH-Pade<br>      POTENTIAL GTH-BLYP-q1<br>    &END KIND<br>    &KIND O<br>      BASIS_SET DZVP-GTH-Pade<br>      POTENTIAL GTH-BLYP-q6<br>    &END KIND<br>    &TOPOLOGY<br>      &MOL_SET<br>        &MOLECULE<br>          NMOL 3<br>          CONN_FILE_NAME topology_atoms_WAT.psf<br>        &END<br>      &END<br>      CONNECTIVITY MOL_SET<br>    &END TOPOLOGY<br>  &END SUBSYS<br>&END FORCE_EVAL<br>&GLOBAL<br><br>  PROJECT H2O_MC<br>  RUN_TYPE MC<br>  PRINT_LEVEL LOW<br>&END GLOBAL<br>&MOTION<br>  &MC<br>    IUPTRANS 6400000<br>    IUPVOLUME 3200000<br>    LBIAS no<br>    LSTOP yes<br>    NMOVES 8<br>    NSTEP 2<br>    PMSWAP 0.0<br>    PMTRAION 0.00<br>    PMTRANS 0.00<br>    PMVOLUME 1.00<br>    PMVOL_BOX 1.00<br>    PMHMC 0.0<br>    PMHMC_BOX 1.0<br>    PRESSURE 1.013<br>    ENSEMBLE traditional<br>    RESTART no<br>    RESTART_FILE_NAME mc_restart_1<br>    RMDIHEDRAL 3.0<br>    RMANGLE 3.0<br>    RMBOND 0.074<br>    RMROT 26.0<br>    RMTRANS 0.38<br>    RMVOLUME 0.5<br>    TEMPERATURE 398.0<br>    AVBMC_RMIN 1.0<br>    AVBMC_RMAX 5.0<br>    AVBMC_ATOM 1<br>    PBIAS 0.5<br>    ETA 0.0<br>    PMAVBMC_MOL 1.0<br>    PMSWAP_MOL 1.0<br>    PMROT_MOL 1.0<br>    PMTRANS_MOL 1.0<br>    PMTRAION_MOL 1.0<br>    VIRIAL_TEMPS 300.0<br>  &END MC<br>&END MOTION<br> '''<br><br>The modified input file for Type B. <br> ''' <br>&FORCE_EVAL<br>  METHOD Quickstep<br>  &DFT<br>    BASIS_SET_FILE_NAME ../../QS/BASIS_SET<br>    POTENTIAL_FILE_NAME ../../QS/POTENTIAL<br>    &MGRID<br>      CUTOFF 100<br>    &END MGRID<br>    &QS<br>      EXTRAPOLATION USE_PREV_WF<br>    &END QS<br>    &SCF<br>      SCF_GUESS ATOMIC<br>    &END SCF<br>    &XC<br>      &XC_FUNCTIONAL Pade<br>      &END XC_FUNCTIONAL<br>      &XC_GRID<br>        XC_DERIV SPLINE2<br>        XC_SMOOTH_RHO NONE<br>      &END XC_GRID<br>    &END XC<br>  &END DFT<br>  &SUBSYS<br>    &CELL<br>      ABC 5.04977 5.04977 5.04977<br>      &CELL_REF<br>        ABC 4.04977 4.04977 4.04977<br>      &END CELL_REF<br>    &END CELL<br>    &COORD<br>     O          2.8618391587       1.1262212638       0.8067716497<br>     H          3.7885812039       1.2213178792       0.4837188849<br>     H          2.4050791412       1.6367607407       0.0086990777<br>     O          1.2482936756       0.6926552354       3.5876311084<br>     H          2.0049860962       0.0755517129       3.2546387846<br>     H          1.1567427889       1.2966422959       2.8169934311<br>     O          4.8631825886       4.1751225282       1.5320584673<br>     H          4.0339593053       4.7472306483       1.6023778687<br>     H          4.5959779716       3.3785364775       1.1011958798<br>    &END COORD<br>    &KIND H<br>      BASIS_SET DZVP-GTH-Pade<br>      POTENTIAL GTH-BLYP-q1<br>    &END KIND<br>    &KIND O<br>      BASIS_SET DZVP-GTH-Pade<br>      POTENTIAL GTH-BLYP-q6<br>    &END KIND<br>    &TOPOLOGY<br>      &MOL_SET<br>        &MOLECULE<br>          NMOL 3<br>          CONN_FILE_NAME topology_atoms_WAT.psf<br>       &END<br>      &END<br>      CONNECTIVITY MOL_SET<br>    &END TOPOLOGY<br>  &END SUBSYS<br>&END FORCE_EVAL<br>&GLOBAL<br><br>  PROJECT H2O_MC<br>  RUN_TYPE MC<br>  PRINT_LEVEL LOW<br>&END GLOBAL<br>&MOTION<br>  &MC<br>    IUPTRANS 100<br>    IUPVOLUME 100<br>    LBIAS yes<br>    LSTOP no<br>    NMOVES 1<br>    NSTEP 1<br>    PMSWAP 0.0<br>    PMSWAP_MOL 0.5 1.0<br>    PMTRAION 0.00<br>    PMTRAION_MOL 1.0 1.0<br>    PMTRANS 0.5<br>    PMTRANS_MOL 0.5 1.0<br>    PMROT_MOL 1.0 1.0<br>    PMVOLUME 0.5<br>    PMVOL_BOX 0.5 <br>    PMHMC 0.0<br>    PMHMC_BOX 1.0<br>    PRESSURE 1.013<br>    ENSEMBLE GEMC_NPT<br>    RESTART no<br>    BOX2_FILE_NAME GEMC_NpT_box2.inp<br>    RESTART_FILE_NAME mc_restart_1<br>    RMDIHEDRAL 3.0 1.0<br>    RMANGLE 3.0 5.0<br>    RMBOND 0.074 0.07<br>    RMROT 26.0 16.0<br>    RMTRANS 0.38 0.25<br>    RMVOLUME 500.0<br>    TEMPERATURE 298.0<br>    IPRINT 24<br>    AVBMC_ATOM 1 1<br>    PMAVBMC 0.0<br>    PMAVBMC_MOL 0.5 1.0<br>    AVBMC_RMIN 1.0 1.0<br>    AVBMC_RMAX 5.0 5.0<br>    PBIAS 0.5 0.5<br>    ETA 0.0 0.0<br>    VIRIAL_TEMPS 300.0<br>  &END MC<br>&END MOTION<br> '''<br></blockquote></div>