Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
INTBuilder
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chloe Dequeker
INTBuilder
Commits
7b5159b1
Commit
7b5159b1
authored
Oct 29, 2016
by
Chloe Dequeker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
malloc optimisation
parent
192b4988
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
INTBuilder.c
src/INTBuilder.c
+6
-4
allocate.c
src/allocate.c
+3
-1
No files found.
src/INTBuilder.c
View file @
7b5159b1
...
@@ -543,6 +543,7 @@ int main(int argc, char** argv){
...
@@ -543,6 +543,7 @@ int main(int argc, char** argv){
writePDB
(
newPDB
,
ligand
,
target_conf
);
writePDB
(
newPDB
,
ligand
,
target_conf
);
}
}
freePDB
(
newPDB
);
freePDB
(
newPDB
);
newPDB
=
NULL
;
}
else
if
(
complexPDB
){
/* If we are building for a given complex, no rotation */
}
else
if
(
complexPDB
){
/* If we are building for a given complex, no rotation */
/* Write the number of the conformation and get the interface */
/* Write the number of the conformation and get the interface */
...
@@ -570,9 +571,9 @@ int main(int argc, char** argv){
...
@@ -570,9 +571,9 @@ int main(int argc, char** argv){
/* This is the rotated PDB
/* This is the rotated PDB
* pdbL doesn't change throughout the program
* pdbL doesn't change throughout the program
*/
*/
newPDB
=
rotate_sophie
(
pdbL
,
pdbR
,
NULL
,
dock_res
->
distCenters
[
i
],
newPDB
=
rotate_sophie
(
pdbL
,
pdbR
,
newPDB
,
dock_res
->
distCenters
[
i
],
dock_res
->
theta
[
i
],
dock_res
->
phi
[
i
],
dock_res
->
theta
[
i
],
dock_res
->
phi
[
i
],
dalpha
,
dbeta
,
dgamma
,
dock_res
,
i
);
dalpha
,
dbeta
,
dgamma
,
dock_res
,
i
);
/* Write the number of the conformation and get the interface */
/* Write the number of the conformation and get the interface */
fprintf
(
outputFile_lig
,
"%d "
,
i
);
fprintf
(
outputFile_lig
,
"%d "
,
i
);
...
@@ -584,8 +585,9 @@ int main(int argc, char** argv){
...
@@ -584,8 +585,9 @@ int main(int argc, char** argv){
if
(
constructPDB
){
if
(
constructPDB
){
writePDB
(
newPDB
,
ligand
,
i
);
writePDB
(
newPDB
,
ligand
,
i
);
}
}
freePDB
(
newPDB
);
}
}
freePDB
(
newPDB
);
newPDB
=
NULL
;
}
}
freePDB
(
pdbL
);
freePDB
(
pdbL
);
...
...
src/allocate.c
View file @
7b5159b1
...
@@ -6,7 +6,9 @@
...
@@ -6,7 +6,9 @@
void
freePDB
(
struct
pdb_values
*
pdb
){
void
freePDB
(
struct
pdb_values
*
pdb
){
free
(
pdb
->
residues
);
free
(
pdb
->
residues
);
free
(
pdb
);
free
(
pdb
);
pdb
=
NULL
;
pdb
=
NULL
;
/* Has not effect since the adress passed as argument
* won't change
*/
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment