Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,938 changes: 1,910 additions & 2,028 deletions proflex/prog/first/src/c++/fixbabel.cpp

Large diffs are not rendered by default.

674 changes: 330 additions & 344 deletions proflex/prog/first/src/c++/hydrophobic.cpp

Large diffs are not rendered by default.

1,274 changes: 662 additions & 612 deletions proflex/prog/first/src/c++/main.cpp

Large diffs are not rendered by default.

2,113 changes: 1,028 additions & 1,085 deletions proflex/prog/first/src/c++/makechem.cpp

Large diffs are not rendered by default.

1,501 changes: 726 additions & 775 deletions proflex/prog/first/src/c++/pick_hbonds.cpp

Large diffs are not rendered by default.

1,202 changes: 604 additions & 598 deletions proflex/prog/first/src/c++/transitions.cpp

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions proflex/prog/hbdilute/include/connect.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*******************************************************************************
* MSU ProFlex, formerly called FIRST, is a software developed to predict and *
* analyze protein flexibility. *
Expand All @@ -22,9 +23,9 @@

#ifndef _CONNECT_
#define _CONNECT_

#include "types.h"
#include <stdio.h>

void print_connections( FILE *, FILE *, int[] );
void print_connections(FILE *, FILE *, int[]);

#endif
4 changes: 2 additions & 2 deletions proflex/prog/hbdilute/include/graphs.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#define _GRAPHS_

#include "types.h"

void plot_data( FILE *, float[], float[], float[], float[], int );
#include <stdio.h>
void plot_data(FILE *, float[], float[], float[], float[], int);

#endif
3 changes: 1 addition & 2 deletions proflex/prog/hbdilute/include/hbfunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#define _HDFUNCTIONS_

#include "types.h"
#include <stdio.h>

void read_chem_file( atom_list **, FILE *, int[], int[], char[], int *,
int *, int[], int[], char[],
Expand All @@ -38,5 +39,3 @@ void clean_up( FILE *, int);
int open_output_file( char [], FILE** );

#endif


1 change: 1 addition & 0 deletions proflex/prog/hbdilute/include/postscript.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#define _POSTSCRIPT_

#include "types.h"
#include <stdio.h>

void print_header( FILE *, float );
void print_data_headings( FILE *, int, int, int, int[] );
Expand Down
6 changes: 3 additions & 3 deletions proflex/prog/hbdilute/include/text_output.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@
* or see http://www.gnu.org/licenses/gpl.txt *
*******************************************************************************/

/*
/*
* File: text_output.h
* Author: Sameer Arora
*
* Created on November 10, 2003, 5:23 PM
*/

#ifndef _text_output_H
#define _text_output_H
#define _text_output_H

#include "types.h"
#include <stdio.h>

void print_text_decomp( clusters *[], int, int, FILE *, int [], int, int,float,float);

#endif /* _text_output_H */

1 change: 0 additions & 1 deletion proflex/prog/hbdilute/src/hbfunctions.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,4 +920,3 @@ void clean_up( FILE *ps_file, int number_of_pages ){
return(1);

}

1 change: 1 addition & 0 deletions proflex/prog/hbdilute/src/postscript.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include "../include/types.h"

#define TRUE 1
Expand Down
24 changes: 23 additions & 1 deletion proflex/prog/hbdilute/src/text_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,29 @@
/* Outout is written to a text file instead of generating a postscript*/
/**********************************************************************/

static void swap_colors(int array[MAX_CLUSTER_COUNT], int A, int B) {
int temp;
temp = array[A];
array[A] = array[B];
array[B] = temp;
}

static void quick_sort(int *array, int start, int end) {

int a = 0, last = 0;

if (start >= end)
return;
swap_colors(array, start, (start + end) / 2);
last = start;
for (a = start + 1; a <= end; a++) {
if (array[a] < array[start])
swap_colors(array, ++start, a);
}
swap_colors(array, start, last);
quick_sort(array, start, last - 1);
quick_sort(array, last + 1, end);
}

void print_text_decomp(
clusters *nc_count[120], int cluster_counter, int line_number,
Expand Down Expand Up @@ -129,4 +152,3 @@ static int
}



Loading