The chemical formula from the GUI (qt3) will be added to the _Seq_Results.dat file header and used by the root macro when plotting the fractions.
This commit is contained in:
@ -602,8 +602,25 @@ void TrimSPGUI::StartSequenceOne()
|
|||||||
# $cmd="mv -f $FILENAME.* ".$All{"Path"};
|
# $cmd="mv -f $FILENAME.* ".$All{"Path"};
|
||||||
# system($cmd);
|
# system($cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# An easy way to keep track of chemical formula is to replace impL_i by the corresponding chemical formula of layer i
|
||||||
|
open (INF,q{<}, "fort.33" );
|
||||||
|
my @lines = <INF>;
|
||||||
|
close(INF);
|
||||||
|
my $all_lines = join("",@lines);
|
||||||
|
for (my $i=1;$i<=$All{"NL"};$i++){
|
||||||
|
my $LComp = "L".$i."Comp";
|
||||||
|
my $chem_formula = $All{"$LComp"};
|
||||||
|
my $place_holder = "impL".$i;
|
||||||
|
$all_lines =~ s/$place_holder/$chem_formula/g;
|
||||||
|
}
|
||||||
|
my $seq_file = $All{"FNPre"}."_Seq_Results.dat";
|
||||||
|
open (SEQF,q{>}, "$seq_file" );
|
||||||
|
print SEQF $all_lines;
|
||||||
|
close(SEQF);
|
||||||
|
|
||||||
# Move the fort.33 file into the subdirectory and change its name
|
# Move the fort.33 file into the subdirectory and change its name
|
||||||
$cmd="rm -f eingabe1.inp; mv -f fort.33 ".$All{"Path"}."/".$All{"FNPre"}."_Seq_Results.dat";
|
$cmd="rm -f eingabe1.inp; rm -f fort.33";
|
||||||
system($cmd);
|
system($cmd);
|
||||||
$Progress=100;
|
$Progress=100;
|
||||||
Progress->setProgress($Progress);
|
Progress->setProgress($Progress);
|
||||||
|
Reference in New Issue
Block a user