Skip to content
Snippets Groups Projects
Commit 649d9bb1 authored by Stefen Guzik's avatar Stefen Guzik
Browse files

Integration of Chaco into Gmsh

parent 5d397ed8
No related branches found
No related tags found
No related merge requests found
Showing
with 70 additions and 32 deletions
DEST_DIR = ../exec
DEST= ${DEST_DIR}/chaco
CC = gcc
IFLAG = -Imain
CFLAGS = -O2
OFLAGS = -O2
FILES.c= main/user_params.c main/interface.c main/main.c \ include ../../variables
LIB = ../../lib/libGmshChaco${LIBEXT}
INC = ${DASH}Imain
CFLAGS = ${OPTIM} ${FLAGS} ${INC} ${SYSINCLUDE}
SRCX = main/Gmsh_printf.cpp main/Gmsh_exit.cpp
SRC = main/user_params.c main/interface.c \
submain/balance.c submain/divide.c submain/submain.c \ submain/balance.c submain/divide.c submain/submain.c \
input/input_assign.c \ input/input_assign.c \
input/check_input.c input/input.c input/input_geom.c \ input/check_input.c input/input.c input/input_geom.c \
...@@ -87,20 +90,30 @@ FILES.c= main/user_params.c main/interface.c main/main.c \ ...@@ -87,20 +90,30 @@ FILES.c= main/user_params.c main/interface.c main/main.c \
util/update.c util/vecout.c util/vecran.c \ util/update.c util/vecout.c util/vecran.c \
util/vecscale.c util/vecscale.c
FILES.o= $(FILES.c:.c=.o) OBJ = ${SRC:.c=${OBJEXT}}
OBJX = ${SRCX:.cpp=${OBJEXT}}
.SUFFIXES: ${OBJEXT} .c .cpp
${DEST}: ${FILES.o} Makefile ${LIB}: ${OBJ} ${OBJX}
${CC} ${OFLAGS} ${FILES.o} -lm -o ${DEST} ${AR} ${ARFLAGS}${LIB} ${OBJ} ${OBJX}
${RANLIB} ${LIB}
lint: .c${OBJEXT}:
lint ${IFLAG} ${FILES.c} -lm ${CC} ${CFLAGS} ${DASH}c $< ${DASH}o ${<:.c=${OBJEXT}}
alint: .cpp${OBJEXT}:
alint ${IFLAG} ${FILES.c} -lm ${CXX} ${CFLAGS} ${DASH}c $< ${DASH}o ${<:.cpp=${OBJEXT}}
clean: clean:
rm -f */*.o ${DEST_DIR}/core rm -f */*.o */*.obj
depend:
(sed '/^# DO NOT DELETE THIS LINE/q' Makefile && \
${CXX} -MM ${CFLAGS} ${SRC} \
) >Makefile.new
cp Makefile Makefile.bak
cp Makefile.new Makefile
rm -f Makefile.new
.c.o: # DO NOT DELETE THIS LINE
${CC} -c ${IFLAG} ${CFLAGS} -o $*.o $*.c
This directory contains all the necessary source code files Chaco version 2.2
for Chaco. Simply type "make", and the code will be compiled
and the executable image placed in "../exec/chaco". This software was developed by Bruce Hendrickson and Robert Leland
at Sandia National Laboratories under US Department of Energy
The default values for the user accessible parameters discussed contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation.
in the user's guide "doc/User_guide.ps" can be modified by
editing the file "main/user_params.c". You must recompile for --------------------------------------------------------------------------------
these changes to take affect.
Chaco has been slightly modified for integration into the Gmsh program. Most
You can also change the code parameters at run time (i.e. without changes are to 'main/interface.c'. Elsewhere, the 'printf' routine has been
recompiling) by including a file "User_Params" in whichever defined as Gmsh_printf to write through a Gmsh Msg::Info. All other
directory you are running the code from (so in the file modifications are tagged by 'Gmsh' and 'Gmsh - end'
"exec/User_Params" in our orignal set-up). Parameter changes
can be specified in a natural way in this file using the rules Parameters explicitly set to false
described in the user's guide. FREE_GRAPH
Parameters that are read through Gmsh and overwrite the parameters file
REFINE_PARTITION
INTERNAL_VERTICES
REFINE_MAP
TERMINAL_PROPOGATION
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */ * contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */
#include <stdio.h> #include <stdio.h>
#include "Gmsh_printf.h"
#include "defs.h" #include "defs.h"
#include "structs.h" #include "structs.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>
#include "Gmsh_printf.h"
#include "structs.h" #include "structs.h"
#include "params.h" #include "params.h"
#include "defs.h" #include "defs.h"
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */ * contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */
#include <stdio.h> #include <stdio.h>
#include "Gmsh_printf.h"
#include "defs.h" #include "defs.h"
#include "params.h" #include "params.h"
#include "structs.h" #include "structs.h"
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */ * contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */
#include <stdio.h> #include <stdio.h>
#include "Gmsh_printf.h"
#include "defs.h" #include "defs.h"
#include "params.h" #include "params.h"
#include "structs.h" #include "structs.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>
#include "Gmsh_printf.h"
#include "params.h" #include "params.h"
#include "defs.h" #include "defs.h"
#include "structs.h" #include "structs.h"
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */ * contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */
#include <stdio.h> #include <stdio.h>
#include "Gmsh_printf.h"
#include "defs.h" #include "defs.h"
#include "structs.h" #include "structs.h"
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */ * contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */
#include <stdio.h> #include <stdio.h>
#include "Gmsh_printf.h"
#include "defs.h" #include "defs.h"
#include "structs.h" #include "structs.h"
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */ * contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */
#include <stdio.h> #include <stdio.h>
#include "Gmsh_printf.h"
#include "defs.h" #include "defs.h"
#include "structs.h" #include "structs.h"
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */ * contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */
#include <stdio.h> #include <stdio.h>
#include "Gmsh_printf.h"
#include "defs.h" #include "defs.h"
#include "structs.h" #include "structs.h"
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */ * contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */
#include <stdio.h> #include <stdio.h>
#include "Gmsh_printf.h"
#include "defs.h" #include "defs.h"
#include "structs.h" #include "structs.h"
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */ * contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */
#include <stdio.h> #include <stdio.h>
#include "Gmsh_printf.h"
#include "defs.h" #include "defs.h"
/* Finds selected eigenvalues of T using Sturm sequence bisection. Based /* Finds selected eigenvalues of T using Sturm sequence bisection. Based
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */ * contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */
#include <stdio.h> #include <stdio.h>
#include "Gmsh_printf.h"
#include "defs.h" #include "defs.h"
#include "structs.h" #include "structs.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>
#include "Gmsh_printf.h"
#include "defs.h" #include "defs.h"
#include "structs.h" #include "structs.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>
#include "Gmsh_printf.h"
#include "params.h" #include "params.h"
#include "defs.h" #include "defs.h"
#include "structs.h" #include "structs.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include <math.h> #include <math.h>
#include <stdio.h> #include <stdio.h>
#include "Gmsh_printf.h"
/* Finds first extended eigenpair of system corresponding to /* Finds first extended eigenpair of system corresponding to
tridiagonal T using using Rafael's bisection technique. */ tridiagonal T using using Rafael's bisection technique. */
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include <math.h> #include <math.h>
#include <stdio.h> #include <stdio.h>
#include "Gmsh_printf.h"
#include "defs.h" #include "defs.h"
/* Finds needed eigenvalues of tridiagonal T using either the QL algorithm /* Finds needed eigenvalues of tridiagonal T using either the QL algorithm
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */ * contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */
#include <stdio.h> #include <stdio.h>
#include "Gmsh_printf.h"
#include "structs.h" #include "structs.h"
#include "defs.h" #include "defs.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>
#include "Gmsh_printf.h"
#include "structs.h" #include "structs.h"
#include "defs.h" #include "defs.h"
#include "params.h" #include "params.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment