Skip to content

Commit

Permalink
remove o2.cpp files
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian.froehlich committed May 12, 2017
1 parent 7cfa77e commit 5bc7f8c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 33 deletions.
53 changes: 23 additions & 30 deletions @amimodel/compileC.m
Original file line number Diff line number Diff line change
Expand Up @@ -405,16 +405,7 @@ function compileC(this)


fprintf('amici | ');
if(this.nxtrue ~= this.nx)
cstr = 'amicio2.cpp';
else
cstr = 'amici.cpp';
end
eval(['mex ' DEBUG COPT ...
' -c -outdir ' fullfile(this.wrap_path,'src') ' ' ...
fullfile(this.wrap_path,'src',cstr) ' ' ...
includesstr]);


if(isunix)
if(~ismac)
CLIBS = 'CLIBS="-lrt"';
Expand All @@ -429,35 +420,37 @@ function compileC(this)
end
end


if(this.nxtrue ~= this.nx)
o2ext = 'o2';
else
o2ext = '';
if(this.nxtrue == this.nx)
eval(['mex ' DEBUG COPT ...
' -c -outdir ' fullfile(this.wrap_path,'src') ' ' ...
fullfile(this.wrap_path,'src','amici.cpp') ' ' ...
includesstr]);
end

prefix = 'ami';


eval(['mex ' DEBUG ' ' COPT ...
' -c -outdir ' fullfile(this.wrap_path,'src') ' ' ...
fullfile(this.wrap_path,'src',['amiwrap' o2ext '.cpp']) ' ' ...
includesstr]);
if(this.nxtrue == this.nx)
eval(['mex ' DEBUG ' ' COPT ...
' -c -outdir ' fullfile(this.wrap_path,'src') ' ' ...
fullfile(this.wrap_path,'src','amiwrap.cpp') ' ' ...
includesstr]);
end

eval(['mex ' DEBUG ' ' COPT ...
' -c -outdir ' fullfile(this.wrap_path,'src') ' ' ...
fullfile(this.wrap_path,'src',['amici_interface_matlab' o2ext '.cpp']) ' ' ...
includesstr]);
if(this.nxtrue == this.nx)
eval(['mex ' DEBUG ' ' COPT ...
' -c -outdir ' fullfile(this.wrap_path,'src') ' ' ...
fullfile(this.wrap_path,'src','amici_interface_matlab.cpp') ' ' ...
includesstr]);
end

eval(['mex ' DEBUG ' ' COPT ' ' CLIBS ...
' -output ' fullfile(this.wrap_path,'models',this.modelname,[prefix '_' this.modelname]) ...
' "' fullfile(this.wrap_path,'src',['amiwrap' o2ext o_suffix]) '"' ...
' "' fullfile(this.wrap_path,'src',['amici' o2ext o_suffix]) '"' ...
' "' fullfile(this.wrap_path,'src',['amici_interface_matlab' o2ext o_suffix]) '"' ...
' -output ' fullfile(this.wrap_path,'models',this.modelname,['ami_' this.modelname]) ...
' "' fullfile(this.wrap_path,'src',['amiwrap' o_suffix]) '"' ...
' "' fullfile(this.wrap_path,'src',['amici' o_suffix]) '"' ...
' "' fullfile(this.wrap_path,'src',['amici_interface_matlab' o_suffix]) '"' ...
' "' fullfile(this.wrap_path,'models',this.modelname,['wrapfunctions' o_suffix]) '"' ...
objectsstr ...
includesstr ...
])




Expand Down
1 change: 0 additions & 1 deletion src/amici_interface_matlabo2.cpp

This file was deleted.

1 change: 0 additions & 1 deletion src/amicio2.cpp

This file was deleted.

1 change: 0 additions & 1 deletion src/amiwrapo2.cpp

This file was deleted.

0 comments on commit 5bc7f8c

Please sign in to comment.