On Thursday, July 12, 2012 12:52:30 PM UTC-7, Kristopher Overholt wrote:
> This line in your Run_All_MIST.sh script:
> export RUNFDS=~/TestCasesv1/Run_All_MIST.sh
> is running the Run_All_MIST.sh script itself when you get to ./FDS_MIST_cases.csh.
> This is why you are getting an infinite loop.
> In the original Run_All.sh script, you will notice that we point to:
> export RUNFDS=$SVNROOT/Utilities/Scripts/runfds.sh
> runfds.sh is a script that we use on our cluster to run FDS in a queueing
> system. For your purposes, you should just be able have one Run_All_MIST.sh
> file with:
> #!/bin/bash -f
> export FDS=/opt/FDS/FDS5/bin/fds5_linux_64
> $FDS Test0/MIST_77_725.fds >& Test0/MIST_77_725.err &
> $FDS Test1/MIST_71_725.fds >& Test1/MIST_71_725.err &
> $FDS Test2/MIST_77_675.fds >& Test2/MIST_77_675.err &
> $FDS Test3/MIST_77_775.fds >& Test3/MIST_77_775.err &
> $FDS Test4/MIST_80_725.fds >& Test4/MIST_80_725.err &
> $FDS Test5/MIST_83_725.fds >& Test5/MIST_83_725.err &
> which is really just a list of commands to run FDS in the background and
> redirect the output to an .err file. You don't need all of the other
> environment variables.
> Kris
> On Thu, Jul 12, 2012 at 3:34 PM, Ronald <rnt...@gmail.com> wrote:
>> *Introduction*
>> I am fairly new to FDS (just started working with it for a couple of
>> weeks now), and forgive me for asking a very basic question. But if anyone
>> can help me pinpoint the problem in the code, you help will be greatly
>> appreciated.
>> *The Code (changed the original file when FDS was downloaded)*
>> *The Run_All_MIST.sh file:*
>> #!/bin/bash -f
>> export FDS=/opt/FDS/FDS5/bin/fds5_linux_64 /this is
>> where the fds program/exe file resides in
>> export RUNFDS=~/TestCasesv1/Run_All_MIST.sh /this is where
>> the sh files resides in
>> export BASEDIR=`pwd`
>> ./FDS_MIST_cases.csh
>> /this is when the files uses the csh file listed below.
>> echo FDS cases submitted
>> *This is the file FDS_MIST_cases.csh:*
>> #!/bin/csh -f
>> $RUNFDS Test0 MIST_77_725 /this just lists all of the files that I
>> want to run and $RUNFDS is defined in the Run_All_MIST.sh file
>> $RUNFDS Test1 MIST_71_725 /the folder Test0-Test5 is in the folder
>> TestCasesv1 defined on the line RUNFDS in the sh file
>> $RUNFDS Test2 MIST_77_675
>> $RUNFDS Test3 MIST_77_775
>> $RUNFDS Test4 MIST_80_725
>> $RUNFDS Test5 MIST_83_725
>> So the problem is not with the individual files from Test0-Test5. When I
>> run these files individually, the simulation works perfectly fine for each
>> of them separately. The problem arises only when I am try to run each file
>> in sequence from Test0 to Test5. It seems to run in an infinite loop where
>> it does not read the first test, Test0 MIST_77_725.
>> *Original Files*
>> I thought I had changed the code relatively parallel to the original
>> files that came with downloading FDS:
>> *For the Run_All.sh file that I thought I had mimicked:*
>> #!/bin/bash -f
>> export SVNROOT=~/FDS-SMV /was
>> not relevant to the files I was trying to run (?)
>> export FDS=$SVNROOT/FDS_Compilation/intel_linux_64/fds5_intel_linux_64
>> /again this is where the exe file is
>> export RUNFDS=$SVNROOT/Utilities/Scripts/runfds.sh
>> /wherever the .sh files are
>> export BASEDIR=`pwd`
>> ./FDS_Cases.csh
>> echo FDS cases submitted
>> cd $BASEDIR/SMV_Scripts
>> ./SMV_Cases.csh /only needed the fds files to
>> be ran to produce smv results so this was taken out.
>> echo SMV cases submitted
>> *For the smv_cases.sh*
>> #!/bin/csh -f
>> $RUNFDS Atmospheric_Effects lee_waves fire41
>> $RUNFDS Transient_Inflow linear_ramp_inflow_4mesh fire73
>> $RUNFDS Atmospheric_Effects stack_effect fire41
>> /basically just has the folder and the file name which I also had.
>> Although I wasn't quite sure what the last line was.
>> I hope the comments I made makes sense as those were my thought processes
>> to create my own .sh and .csh files that I had thought closely resembled
>> the original code. I've looked at other discussion threads, but they don't
>> address the same problem I have since the original files run perfectly
>> fine. The reason I want to create these batch files is that these are the
>> initial 6 cases I am looking at, but eventually more cases will be run, and
>> these batch files will save time.
>> If anything needs to be clarified, please post, but please post something
>> constructive. Again your help is greatly appreciated. Thank you!
>> -Ronald
>> --
>> You received this message because you are subscribed to the Google Groups
>> "FDS and Smokeview Discussions" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/fds-smv/-/0dRKHl7DVFsJ.
>> To post to this group, send email to fds-smv@googlegroups.com.
>> To unsubscribe from this group, send email to
>> fds-smv+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/fds-smv?hl=en.