Skip to content

Commit

Permalink
a bit of modernization (#39)
Browse files Browse the repository at this point in the history
* cleanup prototypes

* change minimum cmake version
  • Loading branch information
greglandrum authored May 1, 2023
1 parent cfb5aee commit c81f416
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tightbind/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 3.0)

project(yaehmop C)

Expand Down
4 changes: 3 additions & 1 deletion tightbind/bind.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//#include <unistd.h>
#ifndef _MSC_VER
#include <unistd.h>
#endif
#include <sys/stat.h>
#include <sys/types.h>

Expand Down
7 changes: 3 additions & 4 deletions tightbind/prototypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ extern void construct_band_structure PROTO(
extern void eval_charge_matrix PROTO((cell_type *, eigenset_type,
hermetian_matrix_type, int, int *, real *,
real *));
extern void reduced_charge_matrix PROTO((int, int, int *, real *, real *));
extern void reduced_charge_mat PROTO((int, int, int *, real *, real *));
extern void check_a_cell PROTO((atom_type *, point_type, int, real, char *));
extern void check_nn_contacts PROTO((cell_type *, detail_type *details));
extern void build_distance_matrix PROTO((cell_type *, detail_type *details));
Expand Down Expand Up @@ -349,8 +349,8 @@ extern void gen_k_point_mesh PROTO((point_type * *points, int num_per_vect[3],
real offset));
extern void automagic_k_points PROTO((detail_type * details, cell_type *cell));

extern void set_details_defaults PROTO((detail_type*));
extern void set_cell_defaults PROTO((cell_type*));
extern void set_details_defaults PROTO((detail_type *));
extern void set_cell_defaults PROTO((cell_type *));
extern void run_bind PROTO((char *, bool, char *));
extern void run_eht PROTO((FILE *));

Expand Down Expand Up @@ -381,4 +381,3 @@ extern int zheev_ PROTO((char *jobz, char *uplo, integer *n, doublecomplex *a,
integer *lda, doublereal *w, doublecomplex *work,
integer *lwork, doublereal *rwork, integer *info));
#endif

0 comments on commit c81f416

Please sign in to comment.