Skip to content
  • Home
  • Recent
Collapse
Brand Logo
CRYSTAL23
Latest v1.0.1
Tutorials Try the Demo Get a License
Tutorials Try the Demo Get a License Instagram
  1. Home
  2. Technical Aspects
  3. Running CRYSTAL in Parallel
  4. Setting the output file name

Setting the output file name

Scheduled Pinned Locked Moved Running CRYSTAL in Parallel
3 Posts 2 Posters 65 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • piquiniundefined Offline
    piquiniundefined Offline
    piquini
    wrote on last edited by GiacomoAmbrogio
    #1

    I am using the script file below to submit crystal23 jobs in a cluster, and I would like to know a way to set the output filename in this script. Also, I would like to see the temporary content of the output file in my $PBS_O_WORKDIR directory. Is there a simple way to do that?
    In the way it is now, the output is going to the runerr file in the $PBS_O_WORKDIR directory, and only at the end of the calculation.
    The working directory is set to $CRY23_SCRDIR/$PBS_JOBID where the $SCRDIR = /work/ppiquini

    #!/bin/bash
    ### Name of the execution queue ###
    #PBS -q testes
    #PBS -N test33
    #PBS -o runout
    #PBS -e runerr
    #PBS -l nodes=1:ppn=4
    #
    module load openmpi/4.1.1-gcc-9.4.0
    #
    cd $PBS_O_WORKDIR
    echo "-----------------------------------------"
    echo "beginning of the job:" `date`
    echo $PBS_O_WORKDIR
    #
    source $HOME/CRYSTAL23/utils23/cry23.bashrc
    mkdir -p $CRY23_SCRDIR
    cp $PBS_JOBNAME".d12" $CRY23_SCRDIR/INPUT
    cd $CRY23_SCRDIR
    #
    mpirun -np 4 $CRY23_EXEDIR/$VERSION/Pcrystal 
    #
    cd /work/ppiquini
    rm -r ./$PBS_JOBID
    echo "Final do job:" `date`
    echo "-----------------------------------------"
    
    1 Reply Last reply
    👍
    0
    • GiacomoAmbrogioundefined Offline
      GiacomoAmbrogioundefined Offline
      GiacomoAmbrogio Developer
      wrote on last edited by
      #2

      Hi piquini,
      You could try to add this to your mpirun line:

      mpirun -np 4 $CRY23_EXEDIR/$VERSION/Pcrystal |& tee $PBS_O_WORKDIR/${PBS_JOBNAME}.out
      

      Let me know if it works!

      Giacomo Ambrogio, PhD Student
      Department of Chemistry - University of Torino
      V. Giuria 5, 10125 Torino (Italy)

      1 Reply Last reply
      2
      • piquiniundefined Offline
        piquiniundefined Offline
        piquini
        wrote on last edited by
        #3

        Dear Giacomo, it worked fine. Thank you very much!

        1 Reply Last reply
        👍
        0

        Powered by Crystal Solutions
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Home
        • Recent