Skip to content

Commit

Permalink
Added mirror mode.
Browse files Browse the repository at this point in the history
AIM plots for mirror mode are still buggy.
  • Loading branch information
z80x1 committed Mar 2, 2013
1 parent 936698f commit 7386d6a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions irc_mirror_mode_replace_atoms.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function ms0 = irc_mirror_mode_replace_atoms(ms0,replacelist)

for aind=1:numel(replacelist.A)
buf = [ ms0.x(replacelist.A(aind)) ms0.y(replacelist.A(aind)) ms0.z(replacelist.A(aind))];
ms0.x(replacelist.A(aind)) = ms0.x(replacelist.B(aind));
ms0.y(replacelist.A(aind)) = ms0.y(replacelist.B(aind));
ms0.z(replacelist.A(aind)) = ms0.z(replacelist.B(aind));
ms0.x(replacelist.B(aind)) = buf(1);
ms0.y(replacelist.B(aind)) = buf(2);
ms0.z(replacelist.B(aind)) = buf(3);
end

end
9 changes: 9 additions & 0 deletions irc_save_gjf_file.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function irc_save_gjf_file(ms0, odir, gjf_odir, fullgtemplname)
order=1:ms0.atomnum;
if exist([odir filesep gjf_odir filesep ms0.desc '.gjf'],'file')~=2 %create input Gaussian file
if exist([odir filesep gjf_odir],'dir')~=7
mkdir(odir,gjf_odir);
end
savemolgs([odir filesep gjf_odir],ms0,3,order,fullgtemplname); %Gaussian with XYZ
end
end

0 comments on commit 7386d6a

Please sign in to comment.